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