X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fext-core%2FMakefile;h=cf1c28faef565190aa7eea28485056401c36b9c7;hb=847e4e1690ec7ce07c9a9fb41b67fac76d2a4381;hp=aae6c48a597ec0d19fe569116205024a599a3e06;hpb=ef2c2b9a7eec8c683961cda967f43cb9eaf0c23a;p=ghc-hetmet.git diff --git a/docs/ext-core/Makefile b/docs/ext-core/Makefile index aae6c48..cf1c28f 100644 --- a/docs/ext-core/Makefile +++ b/docs/ext-core/Makefile @@ -2,13 +2,14 @@ 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 @@ -18,6 +19,7 @@ BIBTEX=bibtex dvi: core.dvi ps: core.ps core.ps.gz +pdf: core.pdf core.dvi: core.tex -$(LATEX) core.tex @@ -27,7 +29,7 @@ core.dvi: core.tex ######## General rules .SUFFIXES: -.PRECIOUS: %.tex %.ps %.ps.gz %.bbl +.PRECIOUS: %.tex %.ps %.ps.gz %.pdf %.bbl %.gz: % @@ -36,15 +38,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