X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=docs%2Fext-core%2FMakefile;h=8d9758838989cf740f7f315af83b4018b6e44c8f;hp=55eca3f7cdd3e04e2b04812e1511a37db93daa8b;hb=34cc75e1a62638f2833815746ebce0a9114dc26b;hpb=084e40d36508e136f02a138eecd9c926fe44ebf3 diff --git a/docs/ext-core/Makefile b/docs/ext-core/Makefile index 55eca3f..8d97588 100644 --- a/docs/ext-core/Makefile +++ b/docs/ext-core/Makefile @@ -1,29 +1,36 @@ TOP = ../.. include $(TOP)/mk/boilerplate.mk -all: ps +ifeq "$(LATEX_DOCS)" "YES" +all: pdf install-docs: - -mkdir $(docdir)/ext-core - cp core.ps.gz $(docdir)/ext-core/ + -mkdir $(docdir)/ext-core + 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: -.PRECIOUS: %.tex %.ps %.ps.gz %.bbl +.PRECIOUS: %.tex %.ps %.ps.gz %.pdf %.bbl %.gz: % @@ -32,11 +39,14 @@ core.dvi: core.tex %.ps: %.dvi dvips -f < $< > $@ +%.pdf: %.ps + ps2pdf $< $@ + clean: $(RM) *.aux *.log distclean: clean - $(RM) prims.tex *.dvi *.ps *.bbl *.blg *.gz + $(RM) prims.tex *.dvi *.ps *.pdf *.bbl *.blg *.gz maintainer-clean: distclean