1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
; This is the rule file for Rubber.
;
; Each rule is introduced by an identifier in square brackets and contains
; entries of the form "key = value". See the texinfo documentation for a
; precise description of the entries.
;-- XFig figures
[fig2dev-vec]
target = (.*)\.(eps|pdf)
source = \1.fig
cost = 0
rule = fig2dev
[fig2dev-bmp]
target = (.*)\.png
source = \1.fig
cost = 10
rule = fig2dev
[fig2dev-tex]
target = (.*)\.(eps|pstex|pdf|pdftex)_t
source = \1.fig
cost = 0
rule = fig2dev
;-- Metapost figures
[mpost]
target = (.*)\.[0-9]+
source = \1.mp
cost = 0
rule = mpost
;-- Rules using "convert" (from ImageMagick)
[convert-vec-vec]
target = (.*)\.(ps|eps|pdf|epdf)
source = \1.{ps,eps,pdf,epdf,wmf}
cost = 2
rule = shell
command = convert $source $target
message = converting $source into $target
[convert-bmp-vec]
target = (.*)\.(ps|eps|pdf|epdf)
source = \1.{bmp,gif,jbg,jbig,pct,pcx,pgm,pict,png,pnm,ppm,tga,tif,tiff,xbm,xcf,xpm}
cost = 8
rule = shell
command = convert $source $target
message = converting $source into $target
[convert-lossy-vec]
target = (.*)\.(ps|eps|pdf|epdf)
source = \1.{jpeg,jpg}
cost = 11
rule = shell
command = convert $source $target
message = converting $source into $target
[convert-bmp-bmp]
target = (.*).(gif|png|tif|bmp|tga|pcx)
source = \1.{bmp,gif,jbg,jbig,pct,pcx,pgm,pict,png,pnm,ppm,tga,tif,tiff,xbm,xcf,xpm}
cost = 2
rule = shell
command = convert $source $target
message = converting $source into $target
; more rules ?
;-- Bounding box extraction from gzipped EPS (built-in rule)
[eps_gz]
target = (.*\.e?ps).bb
source = \1.gz
cost = 0
rule = eps_gz
;-- Miscellaneous graphics converters
[epstopdf]
target = (.*)\.pdf
source = \1.eps
cost = 1
rule = shell
command = epstopdf --outfile=$target $source
message = converting $source to PDF
[jpeg2ps]
target = (.*)\.eps
source = \1.{jpeg,jpg}
cost = 10
rule = shell
command = jpeg2ps -o $target $source
message = converting $source to EPS
[sam2p]
target = (.*)\.(ps|eps|pdf)
source = \1.{bmp,gif,jpeg,jpg,lbm,pbm,pcx,pdf,pgm,png,pnm,ppm,ps,tga,tif,tiff,xpm}
cost = 7
rule = shell
command = sam2p $source $target
message = converting $source into $target
[dia]
target = (.*)\.eps
source = \1.dia
cost = 1
rule = shell
command = dia --export $target $source
message = converting $source to EPS
;-- Source conversion with lhs2TeX
[lhs2TeX]
target = (.*)\.tex
source = \1.lhs
cost = 0
rule = lhs2TeX
|