######################################################################## # Render SVG callouts into PNG ######################################################################## .SUFFIXES: .SUFFIXES: .eps .png .svg CALLSIZE =16 # Need the "librsvg2" RPM for this %.png: %.svg rsvg -f png -h ${CALLSIZE} -w ${CALLSIZE} $< $@ # Need the "ImageMagick" RPM for this %.eps: %.png convert $< $@ # If you change ${NCALLOUTS} from '15' then you need to set the # # stylesheet parameters in "../xsl/". Probably easier not to mess # with changing ${NCALLOUTS}. NCALLOUTS =15 CALLSVG :=$(foreach n,$(shell seq 1 ${NCALLOUTS}),${n}.svg) CALLPNG =${CALLSVG:.svg=.png} CALLEPS =${CALLSVG:.svg=.eps} all:: ${CALLPNG} ${CALLEPS} ${CALLSVG}:: Makefile callout.svg sed -e "s/XX/$(shell basename $@ .svg)/g" callout.svg >$@ clean:: ${RM} ${CALLSVG} distclean:: clean ${RM} ${CALLPNG} ${CALLEPS}