[project @ 2001-06-04 13:40:39 by simonpj]
[ghc-hetmet.git] / ghc / docs / storage-mgt / Makefile
1 #       General makefile for Latex stuff\r
2 \r
3 ps: sm.ps\r
4 \r
5 \r
6 ######## General rules\r
7 .SUFFIXES:\r
8 .PRECIOUS: %.tex %.ps %.bbl\r
9 \r
10 %.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb *.fig))) $(wildcard *.bib)\r
11         latex $<\r
12         @if grep -s "\citation" $*.aux; then bibtex $*; fi\r
13 \r
14 %.ps: %.dvi\r
15         dvips -f < $< > $@\r
16 \r
17 clean:\r
18         rm -f *.aux *.log\r
19 \r
20 nuke: clean\r
21         rm -f *.dvi *.ps *.bbl *.blg\r
22 \r
23 # End of file\r