X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fext-core%2FMakefile;h=c4db5872897ef7a1fd08430a3bdd08a8a07f40ac;hb=785e4ab34b25c6f023183d6fabf5e74b27b416f9;hp=10f3183731a377f10d5854465a24f0faf09f0a36;hpb=2de31b61d0a963803eb5632c9659c6093d74f345;p=ghc-hetmet.git diff --git a/docs/ext-core/Makefile b/docs/ext-core/Makefile index 10f3183..c4db587 100644 --- a/docs/ext-core/Makefile +++ b/docs/ext-core/Makefile @@ -1,41 +1,63 @@ +TOP = ../.. +include $(TOP)/mk/boilerplate.mk + +ifeq "$(LATEX_DOCS)" "YES" +all: pdf + +install-docs: + -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 +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 %.bbl +.PRECIOUS: %.tex %.ps %.ps.gz %.pdf %.bbl + +%.gz: % + gzip < $< > $@ %.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 -binary-dist: - @: +ifeq "$(LATEX_DOCS)" "YES" +BINDIST_EXTRAS += core.pdf +endif +include $(TOP)/mk/bindist.mk # dummy targets -all: boot: install: -install-docs: html: chm: HxS: