| 1 | #$Id: Makefile,v 1.21 2007/01/14 13:35:17 hahe Exp hahe $ |
| 2 | |
| 3 | .PRECIOUS: %.tpic %.tex |
| 4 | |
| 5 | all: example.pdf beamerexample.pdf |
| 6 | |
| 7 | example.pdf: example.tex |
| 8 | pdftex $< |
| 9 | |
| 10 | beamerexample.pdf: beamerexample.tex |
| 11 | pdflatex $< |
| 12 | |
| 13 | %.tpic: %.pic Makefile |
| 14 | pic -z -t $< > $@ |
| 15 | |
| 16 | %.tex: %.tpic |
| 17 | tpic2pdftex $< > $@ |
| 18 | |
| 19 | clean: |
| 20 | - rm *.tex |
| 21 | - rm *.log |
| 22 | - rm *.toc |
| 23 | - rm *.out |
| 24 | - rm *.snm |
| 25 | - rm *.nav |
| 26 | - rm *.aux |
| 27 | - rm *.tpic |
| 28 | |
| 29 | allclean: |
| 30 | make clean |
| 31 | - rm *.pdf |