c4db5872897ef7a1fd08430a3bdd08a8a07f40ac
[ghc-hetmet.git] / docs / ext-core / Makefile
1 TOP = ../..
2 include $(TOP)/mk/boilerplate.mk
3
4 ifeq "$(LATEX_DOCS)" "YES"
5 all: pdf
6
7 install-docs:
8         -mkdir      $(docdir)/ext-core
9         cp core.pdf $(docdir)/ext-core/
10 else
11 all:
12 install-docs:
13 endif
14
15 #       General makefile for Latex stuff
16
17 LATEX=latex \\nonstopmode \\input
18 PDFLATEX=pdflatex
19 BIBTEX=bibtex
20
21 dvi: core.dvi
22 ps: core.ps core.ps.gz
23 pdf: core.pdf
24
25 core.pdf: core.tex
26         $(PDFLATEX) core.tex
27         $(BIBTEX) core
28         $(PDFLATEX) core.tex
29         $(PDFLATEX) core.tex
30
31 ######## General rules
32 .SUFFIXES:
33 .PRECIOUS: %.tex %.ps %.ps.gz %.pdf %.bbl
34
35
36 %.gz: %
37         gzip < $< > $@
38
39 %.ps: %.dvi
40         dvips -f < $< > $@
41
42 %.pdf: %.ps
43         ps2pdf $< $@
44
45 clean:
46         $(RM) *.aux *.log
47
48 distclean: clean
49         $(RM) prims.tex *.dvi *.ps *.pdf *.bbl *.blg *.gz
50
51 maintainer-clean: distclean
52
53 ifeq "$(LATEX_DOCS)" "YES"
54 BINDIST_EXTRAS += core.pdf
55 endif
56 include $(TOP)/mk/bindist.mk
57
58 # dummy targets
59 boot:
60 install:
61 html:
62 chm:
63 HxS:
64
65 # End of file