GHC new build system megapatch
[ghc-hetmet.git] / docs / ext-core / Makefile
index cf1c28f..8d97588 100644 (file)
@@ -15,17 +15,18 @@ endif
 #      General makefile for Latex stuff
 
 LATEX=latex \\nonstopmode \\input
+PDFLATEX=pdflatex
 BIBTEX=bibtex
 
 dvi: core.dvi
 ps: core.ps core.ps.gz
 pdf: core.pdf
 
-core.dvi:      core.tex
-               -$(LATEX) core.tex
-               $(BIBTEX) core
-               -$(LATEX) core.tex
-               -$(LATEX) core.tex
+core.pdf: core.tex
+       $(PDFLATEX) core.tex
+       $(BIBTEX) core
+       $(PDFLATEX) core.tex
+       $(PDFLATEX) core.tex
 
 ######## General rules
 .SUFFIXES:
@@ -49,9 +50,6 @@ distclean: clean
 
 maintainer-clean: distclean
 
-ifeq "$(LATEX_DOCS)" "YES"
-BINDIST_EXTRAS += core.pdf
-endif
 include $(TOP)/mk/bindist.mk
 
 # dummy targets