X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fext-core%2FMakefile;h=c4db5872897ef7a1fd08430a3bdd08a8a07f40ac;hb=2896564599896f78bddf881e70165b1b299a815c;hp=aae6c48a597ec0d19fe569116205024a599a3e06;hpb=ef2c2b9a7eec8c683961cda967f43cb9eaf0c23a;p=ghc-hetmet.git diff --git a/docs/ext-core/Makefile b/docs/ext-core/Makefile index aae6c48..c4db587 100644 --- a/docs/ext-core/Makefile +++ b/docs/ext-core/Makefile @@ -2,32 +2,35 @@ TOP = ../.. include $(TOP)/mk/boilerplate.mk ifeq "$(LATEX_DOCS)" "YES" -all: ps +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: % @@ -36,15 +39,20 @@ 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 -BINDIST_EXTRAS += core.ps.gz +ifeq "$(LATEX_DOCS)" "YES" +BINDIST_EXTRAS += core.pdf +endif include $(TOP)/mk/bindist.mk # dummy targets