| 1 |
TEX=latex |
| 2 |
PTEX=pdflatex |
| 3 |
DVI=dvips |
| 4 |
|
| 5 |
.PHONY: all |
| 6 |
all : Agraph.pdf |
| 7 |
|
| 8 |
%.pdf : %.dot |
| 9 |
dot -Tps2 $< | epstopdf --filter --outfile=$@ |
| 10 |
|
| 11 |
Agraph.pdf : Agraph.tex sccmap.tex agmemread.tex |
| 12 |
$(PTEX) Agraph.tex |
| 13 |
@if grep "Label(s) may have changed" Agraph.log; then $(PTEX) Agraph.tex; fi |
| 14 |
|
| 15 |
Agraph.ps : Agraph.dvi |
| 16 |
@if grep "Label(s) may have changed" Agraph.log; then $(TEX) Agraph.tex; fi |
| 17 |
$(DVI) -o Agraph.ps Agraph |
| 18 |
|
| 19 |
sccmap.tex : sccmap.c |
| 20 |
lgrind -i -c -t 4 -l C sccmap.c > sccmap.tex |
| 21 |
|
| 22 |
agmemread.tex : agmemread.c |
| 23 |
lgrind -i -c -t 4 -l C agmemread.c > agmemread.tex |
| 24 |
|
| 25 |
Agraph.aux : Agraph.tex |
| 26 |
$(TEX) Agraph |
| 27 |
|
| 28 |
.PHONY: clean |
| 29 |
clean: |
| 30 |
rm -rf *.bbl *.aux *.dvi *.ps *.pdf *.log *.toc *.blg |
| 31 |
|