9dc1c01d7ca7b4c050a3b46ae0da2a1243f31ea4
[ghc-hetmet.git] / ghc / docs / storage-mgt / Makefile
1 #       General makefile for Latex stuff
2
3 dvi: sm.dvi rp.dvi ldv.dvi
4 ps: sm.ps rp.ps ldv.ps
5 html:
6
7 ######## General rules
8 .SUFFIXES:
9 .PRECIOUS: %.tex %.ps %.bbl
10
11 #%.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb *.fig))) $(wildcard *.bib)
12 %.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb))) $(wildcard *.bib)
13         latex $<
14         @if grep -s "\citation" $*.aux; then bibtex $*; fi
15         latex $<
16         latex $<
17
18 %.ps: %.dvi
19         dvips -f < $< > $@
20
21 clean:
22         $(RM) *.aux *.log
23
24 distclean: clean
25         $(RM) *.dvi *.ps *.bbl *.blg *.gz
26
27 maintainer-clean: distclean
28
29 # End of file