[project @ 2002-02-22 21:40:38 by panne]
[ghc-hetmet.git] / ghc / docs / storage-mgt / Makefile
1 #       General makefile for Latex stuff\r
2 \r
3 ps: sm.ps rp.ps ldv.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 %.dvi: %.tex $(addsuffix .tex, $(basename $(wildcard *.verb))) $(wildcard *.bib)\r
12         latex $<\r
13         @if grep -s "\citation" $*.aux; then bibtex $*; fi\r
14         latex $<\r
15         latex $<\r
16 \r
17 %.ps: %.dvi\r
18         dvips -f < $< > $@\r
19 \r
20 clean:\r
21         rm -f *.aux *.log\r
22 \r
23 nuke: clean\r
24         rm -f *.dvi *.ps *.bbl *.blg\r
25 \r
26 # End of file\r