### graphics.make # $Id: graphics.make,v 1.2 2007-05-10 15:55:20 steve Exp $ # COPYRIGHT Stephen R. Savitzky; HyperSpace Express # This file is free software licenced under LGPL v2.0 or later. ######################################################################## # # This makefile contains rules for graphics format conversion. # ######################################################################## .SUFFIXES: .tex .dvi .html .idx .ps .xbm .fig .eps .gif .mif .fm .ppm ### .fig (xfig) to various output formats. # Works even with GNU ghostscript, which doesn't have GIF drivers. .fig.gif: fig2dev -Lps -P $< \ | gs -q -dNOPAUSE -sDEVICE=ppmraw -sOutputFile=- - \ | pnmcrop | ppmtogif -transparent white > $@ .fig.ps: fig2dev -Lps -P $< > $@ .fig.eps: fig2dev -Lps $< > $@ ### Other image format conversions .ps.gif: gs -q -dNOPAUSE -sDEVICE=ppmraw -sOutputFile=- $< $@ .ppm.gif: ppmtogif -transparent white $< > $@ .gif.eps: giftopnm $< | pnmtops -noturn -rle -nocenter > $@