From c1c1e720a1e42df940c932f789f74bd5bcff4882 Mon Sep 17 00:00:00 2001 From: panne Date: Sat, 5 Jun 2004 21:55:51 +0000 Subject: [PATCH] [project @ 2004-06-05 21:55:51 by panne] "make dvi ps html" in $(TOP) builds *all* documentation now --- ghc/docs/Makefile | 2 +- ghc/docs/ext-core/Makefile | 64 ++++++++++++++++++++++------------------- ghc/docs/storage-mgt/Makefile | 55 ++++++++++++++++++----------------- mk/config.mk.in | 4 +-- 4 files changed, 66 insertions(+), 59 deletions(-) diff --git a/ghc/docs/Makefile b/ghc/docs/Makefile index d11e3ad..31081db 100644 --- a/ghc/docs/Makefile +++ b/ghc/docs/Makefile @@ -1,7 +1,7 @@ TOP = .. include $(TOP)/mk/boilerplate.mk -SUBDIRS = users_guide +SUBDIRS = users_guide ext-core storage-mgt PAGES = index.html diff --git a/ghc/docs/ext-core/Makefile b/ghc/docs/ext-core/Makefile index af60181..b5814d0 100644 --- a/ghc/docs/ext-core/Makefile +++ b/ghc/docs/ext-core/Makefile @@ -1,30 +1,34 @@ -# General makefile for Latex stuff - -ps: core.ps - -core.dvi: core.tex prims.tex - latex core.tex - latex core.tex - -../../compiler/prelude/primops.txt: ../../compiler/prelude/primops.txt.pp - (cd ../../compiler/prelude; gcc -E -I../../includes -traditional -x c primops.txt.pp | /bin/sed -e '/^#/d' > primops.txt) - -prims.tex: ../../compiler/prelude/primops.txt - ../../utils/genprimopcode/genprimopcode --make-latex-doc < ../../compiler/prelude/primops.txt > prims.tex - - -######## General rules -.SUFFIXES: -.PRECIOUS: %.tex %.ps %.bbl - - -%.ps: %.dvi - dvips -f < $< > $@ - -clean: - rm -f *.aux *.log - -nuke: clean - rm -f *.dvi *.ps *.bbl *.blg - -# End of file +# General makefile for Latex stuff + +dvi: core.dvi +ps: core.ps +html: + +core.dvi: core.tex prims.tex + latex core.tex + latex core.tex + +../../compiler/prelude/primops.txt: ../../compiler/prelude/primops.txt.pp + (cd ../../compiler/prelude; gcc -E -I../../includes -traditional -x c primops.txt.pp | /bin/sed -e '/^#/d' > primops.txt) + +prims.tex: ../../compiler/prelude/primops.txt + ../../utils/genprimopcode/genprimopcode --make-latex-doc < ../../compiler/prelude/primops.txt > prims.tex + + +######## General rules +.SUFFIXES: +.PRECIOUS: %.tex %.ps %.bbl + + +%.ps: %.dvi + dvips -f < $< > $@ + +clean: + $(RM) *.aux *.log + +distclean: clean + $(RM) prims.tex *.dvi *.ps *.bbl *.blg *.gz + +maintainer-clean: distclean + +# End of file diff --git a/ghc/docs/storage-mgt/Makefile b/ghc/docs/storage-mgt/Makefile index ee543f3..9dc1c01 100644 --- a/ghc/docs/storage-mgt/Makefile +++ b/ghc/docs/storage-mgt/Makefile @@ -1,26 +1,29 @@ -# General makefile for Latex stuff - -ps: sm.ps rp.ps ldv.ps - - -######## General rules -.SUFFIXES: -.PRECIOUS: %.tex %.ps %.bbl - -#%.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb *.fig))) $(wildcard *.bib) -%.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb))) $(wildcard *.bib) - latex $< - @if grep -s "\citation" $*.aux; then bibtex $*; fi - latex $< - latex $< - -%.ps: %.dvi - dvips -f < $< > $@ - -clean: - rm -f *.aux *.log - -nuke: clean - rm -f *.dvi *.ps *.bbl *.blg - -# End of file +# General makefile for Latex stuff + +dvi: sm.dvi rp.dvi ldv.dvi +ps: sm.ps rp.ps ldv.ps +html: + +######## General rules +.SUFFIXES: +.PRECIOUS: %.tex %.ps %.bbl + +#%.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb *.fig))) $(wildcard *.bib) +%.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb))) $(wildcard *.bib) + latex $< + @if grep -s "\citation" $*.aux; then bibtex $*; fi + latex $< + latex $< + +%.ps: %.dvi + dvips -f < $< > $@ + +clean: + $(RM) *.aux *.log + +distclean: clean + $(RM) *.dvi *.ps *.bbl *.blg *.gz + +maintainer-clean: distclean + +# End of file diff --git a/mk/config.mk.in b/mk/config.mk.in index 66c18c1..71aa514 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -145,9 +145,9 @@ BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@ # # Build the libs first if we're bootstrapping from .hc files. ifeq "$(BootingFromHc)" "YES" -AllProjects = glafp-utils happy alex haddock libraries hslibs ghc greencard hdirect hood nofib +AllProjects = glafp-utils happy alex haddock libraries hslibs ghc greencard hdirect hood nofib docs else -AllProjects = glafp-utils happy alex haddock ghc libraries hslibs greencard hdirect hood nofib +AllProjects = glafp-utils happy alex haddock ghc libraries hslibs greencard hdirect hood nofib docs endif # -- 1.7.10.4