GHC new build system megapatch
[ghc-hetmet.git] / docs / ext-core / Makefile
index 42c9a8f..8d97588 100644 (file)
@@ -9,22 +9,24 @@ install-docs:
        cp core.pdf $(docdir)/ext-core/
 else
 all:
+install-docs:
 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:
@@ -48,9 +50,6 @@ distclean: clean
 
 maintainer-clean: distclean
 
-ifeq "$(LATEX_DOCS)" "YES"
-BINDIST_EXTRAS += core.pdf
-endif
 include $(TOP)/mk/bindist.mk
 
 # dummy targets