X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fext-core%2FMakefile;h=cf1c28faef565190aa7eea28485056401c36b9c7;hb=f5baf549bcd4b835fdc8e0ce00b854f522464e68;hp=561b71bd043d7aeda414bf12c4da10d6e4122772;hpb=9f565a397c17568f725b25720a817326744777f0;p=ghc-hetmet.git diff --git a/docs/ext-core/Makefile b/docs/ext-core/Makefile index 561b71b..cf1c28f 100644 --- a/docs/ext-core/Makefile +++ b/docs/ext-core/Makefile @@ -1,10 +1,25 @@ +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 BIBTEX=bibtex dvi: core.dvi -ps: core.ps +ps: core.ps core.ps.gz +pdf: core.pdf core.dvi: core.tex -$(LATEX) core.tex @@ -14,25 +29,34 @@ core.dvi: 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 +ifeq "$(LATEX_DOCS)" "YES" +BINDIST_EXTRAS += core.pdf +endif +include $(TOP)/mk/bindist.mk + # dummy targets -all: boot: install: -install-docs: html: chm: HxS: