From a23e49443a1634e7de8d9524da67d251bec2d561 Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Wed, 29 Mar 2006 15:51:52 +0000 Subject: Switched callout graphics to use the Fedora Logo motif. Also added the Makefile, this time. --- stylesheet-images/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 stylesheet-images/Makefile (limited to 'stylesheet-images/Makefile') diff --git a/stylesheet-images/Makefile b/stylesheet-images/Makefile new file mode 100644 index 0000000..a8082c8 --- /dev/null +++ b/stylesheet-images/Makefile @@ -0,0 +1,31 @@ +######################################################################## +# 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 $< $@ + +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/$(basename $@ .svg)/g" callout.svg >$@ + +clean:: + ${RM} ${CALLSVG} + +distclean:: clean + ${RM} ${CALLPNG} ${CALLEPS} -- cgit