Make a pdf, rather than ps.gz, of teh ext-core docs
[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 endif
13
14 #       General makefile for Latex stuff
15
16 LATEX=latex \\nonstopmode \\input
17 BIBTEX=bibtex
18
19 dvi: core.dvi
20 ps: core.ps core.ps.gz
21 pdf: core.pdf
22
23 core.dvi:       core.tex
24                 -$(LATEX) core.tex
25                 $(BIBTEX) core
26                 -$(LATEX) core.tex
27                 -$(LATEX) core.tex
28
29 ######## General rules
30 .SUFFIXES:
31 .PRECIOUS: %.tex %.ps %.ps.gz %.pdf %.bbl
32
33
34 %.gz: %
35         gzip < $< > $@
36
37 %.ps: %.dvi
38         dvips -f < $< > $@
39
40 %.pdf: %.ps
41         ps2pdf $< $@
42
43 clean:
44         $(RM) *.aux *.log
45
46 distclean: clean
47         $(RM) prims.tex *.dvi *.ps *.pdf *.bbl *.blg *.gz
48
49 maintainer-clean: distclean
50
51 ifeq "$(LATEX_DOCS)" "YES"
52 BINDIST_EXTRAS += core.pdf
53 endif
54 include $(TOP)/mk/bindist.mk
55
56 # dummy targets
57 boot:
58 install:
59 html:
60 chm:
61 HxS:
62
63 # End of file