From e95140a5c350360b1f8e3f1e789ec4a5eebf95f3 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 21 Mar 2010 16:19:09 +0000 Subject: Add the external core PDF to the new build system --- docs/ext-core/Makefile | 63 ++------------------------------------------------ docs/ext-core/ghc.mk | 15 ++++++++++++ 2 files changed, 17 insertions(+), 61 deletions(-) create mode 100644 docs/ext-core/ghc.mk (limited to 'docs/ext-core') diff --git a/docs/ext-core/Makefile b/docs/ext-core/Makefile index 8d97588389..603a670662 100644 --- a/docs/ext-core/Makefile +++ b/docs/ext-core/Makefile @@ -1,62 +1,3 @@ +dir = docs/users_guide 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 core.ps.gz -pdf: core.pdf - -core.pdf: core.tex - $(PDFLATEX) core.tex - $(BIBTEX) core - $(PDFLATEX) core.tex - $(PDFLATEX) core.tex - -######## General rules -.SUFFIXES: -.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 *.pdf *.bbl *.blg *.gz - -maintainer-clean: distclean - -include $(TOP)/mk/bindist.mk - -# dummy targets -boot: -install: -html: -chm: -HxS: - -# End of file +include $(TOP)/mk/sub-makefile.mk diff --git a/docs/ext-core/ghc.mk b/docs/ext-core/ghc.mk new file mode 100644 index 0000000000..47e56c099b --- /dev/null +++ b/docs/ext-core/ghc.mk @@ -0,0 +1,15 @@ + +ifeq "$(LATEX_DOCS)" "YES" +$(eval $(call all-target,docs/ext-core,docs/ext-core/core.pdf)) + +INSTALL_DOCS += docs/ext-core/core.pdf +endif + +ifneq "$(BINDIST)" "YES" +docs/ext-core/core.pdf: docs/ext-core/core.tex + cd docs/ext-core && $(PDFLATEX) core.tex + cd docs/ext-core && $(BIBTEX) core + cd docs/ext-core && $(PDFLATEX) core.tex + cd docs/ext-core && $(PDFLATEX) core.tex +endif + -- cgit v1.2.1