PNG := $(shell ls *.png) JPG := $(shell ls *.jpg) GIF := $(shell ls *.gif) FIG := $(shell ls *.fig) OEPS := $(shell ls *.eps) EPS = ${PNG:.png=.eps} ${JPG:.jpg=.eps} ${GIF:.gif=.eps} ${FIG:.fig=.eps} PDF = ${PNG:.png=.pdf} ${JPG:.jpg=.pdf} ${GIF:.gif=.pdf} ${FIG:.fig=.pdf} \ ${OEPS:.eps=.pdf} DEFAULT: $(PDF) $(EPS) pdf: @make $(PDF) eps: @make $(EPS) .SUFFIXES: .fig .png .jpg .gif .eps .pdf .fig.eps: @echo "Converting $< to $@ ..." @fig2dev -L eps $< $@ @echo "done." # .fig.pdf: # @echo "Converting $< to $@ ..." # @make $*.eps # @epstopdf -nogs $*.eps | \ # ps2pdf -dPDFSETTINGS=/prepress \ # -dAutoFilterColorImages=true \ # -dEncodeColorImages=false \ # - $@ # @echo "done." # .png.pdf: # @echo "Converting $< to $@ ..." # @convert $< $@ # @echo "done." # .jpg.pdf: # @echo "Converting $< to $@ ..." # @convert $< $@ # @echo "done." # .gif.pdf: # @echo "Converting $< to $@ ..." # @convert $< $@ # @echo "done." .png.eps: @echo "Converting $< to $@ ..." # @convert $< eps2:$@ @rm -f $@ @pngtopnm $< | pnmtops -noturn > $@ #-rle @echo "done." .jpg.eps: @echo "Converting $< to $@ ..." @rm -f $@ @jpegtopnm $< | pnmtops -noturn > $@ # @convert $< eps2:$@ @echo "done." .gif.eps: @echo "Converting $< to $@ ..." # @convert $< eps2:$@ @rm -f $@ @giftopnm $< | pnmtops -noturn > $@ @echo "done." # the last rule should be used only for figs... .eps.pdf: @echo "Converting $< to $@ ..." @epstopdf $< # @epstopdf -nogs $*.eps | \ # ps2pdf -dPDFSETTINGS=/screen \ # - $@ @echo "done." clean: rm -f $(EPS) $(PDF) #.eps.pdf: # @echo "Converting $< to $@ ..." # @epstopdf $< # @echo "done." #.ps.pdf: # @echo "Converting $< to $@ ..." # @epstopdf $< # @echo "done."