Rev | Line | |
---|
[243] | 1 | |
---|
| 2 | FIG := $(shell ls *.fig) |
---|
| 3 | |
---|
| 4 | OBJ := $(shell ls *.obj) |
---|
| 5 | |
---|
| 6 | EPS = ${FIG:.fig=.eps} ${OBJ:.obj=.eps} |
---|
| 7 | |
---|
| 8 | PDF = ${FIG:.fig=.pdf} ${OBJ:.obj=.pdf} |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | DEFAULT: $(EPS) $(PDF) |
---|
| 12 | |
---|
| 13 | pdf: |
---|
| 14 | @make $(PDF) |
---|
| 15 | |
---|
| 16 | eps: |
---|
| 17 | @make $(EPS) |
---|
| 18 | |
---|
| 19 | clean: |
---|
| 20 | rm -f $(EPS) $(PDF) |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | .SUFFIXES: .fig .eps .pdf .obj |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | .fig.eps: |
---|
| 27 | @echo "Converting $< to $@ ..." |
---|
| 28 | @fig2dev -L eps $< $@ |
---|
| 29 | @echo "done." |
---|
| 30 | |
---|
| 31 | .eps.pdf: |
---|
| 32 | @echo "Converting $< to $@ ..." |
---|
| 33 | @epstopdf $< |
---|
| 34 | @echo "done." |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | .obj.eps: |
---|
| 38 | @echo "Converting $< to $@ ..." |
---|
| 39 | @tgif -print -color -eps $< $@ |
---|
| 40 | @echo "done." |
---|
| 41 | |
---|
| 42 | #.obj.pdf: |
---|
| 43 | # @echo "Converting $< to $@ ..." |
---|
| 44 | # @tgif -eps $< $@ |
---|
| 45 | # @echo "done." |
---|
Note: See
TracBrowser
for help on using the repository browser.