projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GHC new build system megapatch
[ghc-hetmet.git]
/
docs
/
ext-core
/
Makefile
diff --git
a/docs/ext-core/Makefile
b/docs/ext-core/Makefile
index
8c32a7b
..
8d97588
100644
(file)
--- a/
docs/ext-core/Makefile
+++ b/
docs/ext-core/Makefile
@@
-1,40
+1,60
@@
-# General makefile for Latex stuff
+TOP = ../..
+include $(TOP)/mk/boilerplate.mk
-dvi: core.dvi
-ps: core.ps
+ifeq "$(LATEX_DOCS)" "YES"
+all: pdf
-core.dvi: core.tex prims.tex
- latex core.tex
- latex core.tex
+install-docs:
+ -mkdir $(docdir)/ext-core
+ cp core.pdf $(docdir)/ext-core/
+else
+all:
+install-docs:
+endif
-../../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)
+# General makefile for Latex stuff
-prims.tex: ../../compiler/prelude/primops.txt
- ../../utils/genprimopcode/genprimopcode --make-latex-doc < ../../compiler/prelude/primops.txt > prims.tex
+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:
######## General rules
.SUFFIXES:
-.PRECIOUS: %.tex %.ps %.bbl
+.PRECIOUS: %.tex %.ps %.ps.gz %.pdf %.bbl
+
+%.gz: %
+ gzip < $< > $@
%.ps: %.dvi
dvips -f < $< > $@
%.ps: %.dvi
dvips -f < $< > $@
+%.pdf: %.ps
+ ps2pdf $< $@
+
clean:
$(RM) *.aux *.log
distclean: clean
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
maintainer-clean: distclean
+include $(TOP)/mk/bindist.mk
+
# dummy targets
# dummy targets
-all:
boot:
install:
boot:
install:
-install-docs:
html:
chm:
HxS:
html:
chm:
HxS: