| 1 |
.PHONY: all clean clobber |
| 2 |
|
| 3 |
TPDF = $(shell find . -maxdepth 1 -type f -name 'pdf*.tex' | sort) |
| 4 |
TPS = $(shell find . -maxdepth 1 -type f -name 'ps*.tex' | sort) |
| 5 |
PS = $(TPS:.tex=.ps) |
| 6 |
PDF = $(TPDF:.tex=.pdf) |
| 7 |
|
| 8 |
|
| 9 |
all: $(PS) $(PDF) |
| 10 |
|
| 11 |
%.pdf: %.tex |
| 12 |
pdflatex -shell-escape $< |
| 13 |
pdflatex -shell-escape $< |
| 14 |
|
| 15 |
%.dvi: %.tex |
| 16 |
latex -shell-escape $< |
| 17 |
latex -shell-escape $< |
| 18 |
|
| 19 |
%.ps: %.dvi |
| 20 |
dvips $< |
| 21 |
|
| 22 |
clean: |
| 23 |
rm -rf ./tmp |
| 24 |
rm -f master.gvpr |
| 25 |
rm -f master.graphviz |
| 26 |
rm -f *~ |
| 27 |
rm -f *.dot |
| 28 |
rm -f *.ps |
| 29 |
rm -f *.pdf |
| 30 |
rm -f *.aux |
| 31 |
rm -f *.glo |
| 32 |
rm -f *.gls |
| 33 |
rm -f *.idx |
| 34 |
rm -f *.ilg |
| 35 |
rm -f *.log |
| 36 |
rm -f *.dvi |
| 37 |
|
| 38 |
clobber: clean |
| 39 |
rm -f $(PS) |
| 40 |
rm -f $(PDF) |