source: obsolete/trunk/VUT/doc/SciReport/images/makefile @ 243

Revision 243, 1.7 KB checked in by bittner, 19 years ago (diff)

SciReport? template

Line 
1
2PNG := $(shell ls *.png)
3
4JPG := $(shell ls *.jpg)
5
6GIF := $(shell ls *.gif)
7
8FIG := $(shell ls *.fig)
9
10OEPS := $(shell ls *.eps)
11
12EPS = ${PNG:.png=.eps} ${JPG:.jpg=.eps} ${GIF:.gif=.eps} ${FIG:.fig=.eps}
13PDF = ${PNG:.png=.pdf} ${JPG:.jpg=.pdf} ${GIF:.gif=.pdf} ${FIG:.fig=.pdf} \
14        ${OEPS:.eps=.pdf}
15
16
17DEFAULT: $(PDF) $(EPS)
18
19pdf:
20        @make $(PDF)
21
22eps:
23        @make $(EPS)
24
25
26.SUFFIXES: .fig .png .jpg .gif .eps .pdf 
27
28.fig.eps:
29        @echo "Converting $< to $@ ..."
30        @fig2dev -L eps $< $@
31        @echo "done."
32
33# .fig.pdf:
34#       @echo "Converting $< to $@ ..."
35#       @make $*.eps
36#       @epstopdf -nogs $*.eps | \
37#       ps2pdf -dPDFSETTINGS=/prepress \
38#       -dAutoFilterColorImages=true \
39#       -dEncodeColorImages=false \
40#       - $@
41#       @echo "done."
42
43# .png.pdf:
44#       @echo "Converting $< to $@ ..."
45#       @convert $< $@
46#       @echo "done."
47
48# .jpg.pdf:
49#       @echo "Converting $< to $@ ..."
50#       @convert $< $@
51#       @echo "done."
52
53# .gif.pdf:
54#       @echo "Converting $< to $@ ..."
55#       @convert $< $@
56#       @echo "done."
57
58.png.eps:
59        @echo "Converting $< to $@ ..."
60#       @convert $< eps2:$@
61        @rm -f $@
62        @pngtopnm $< | pnmtops -noturn  > $@
63#-rle
64        @echo "done."
65
66.jpg.eps:
67        @echo "Converting $< to $@ ..."
68        @rm -f $@
69        @jpegtopnm $< | pnmtops -noturn  > $@
70#       @convert $< eps2:$@
71        @echo "done."
72
73.gif.eps:
74        @echo "Converting $< to $@ ..."
75#       @convert $< eps2:$@
76        @rm -f $@
77        @giftopnm $< | pnmtops -noturn  > $@
78        @echo "done."
79
80# the last rule should be used only for figs...
81.eps.pdf:
82        @echo "Converting $< to $@ ..."
83        @epstopdf $<
84#       @epstopdf -nogs $*.eps | \
85#       ps2pdf -dPDFSETTINGS=/screen \
86#       - $@
87
88        @echo "done."
89
90
91clean:
92        rm -f $(EPS) $(PDF)
93
94#.eps.pdf:
95#       @echo "Converting $< to $@ ..."
96#       @epstopdf $<
97#       @echo "done."
98
99#.ps.pdf:
100#       @echo "Converting $< to $@ ..."
101#       @epstopdf $<
102#       @echo "done."
103
Note: See TracBrowser for help on using the repository browser.