summaryrefslogtreecommitdiffstats
path: root/stylesheet-images/Makefile
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-29 15:51:52 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-29 15:51:52 +0000
commita23e49443a1634e7de8d9524da67d251bec2d561 (patch)
tree83dd9c3bf4d77367957631ec47235a30d9e2fe2a /stylesheet-images/Makefile
parentd0101bbb8e32a3ccc698e013fd5da08880f39934 (diff)
downloadfedora-doc-utils-a23e49443a1634e7de8d9524da67d251bec2d561.tar.gz
fedora-doc-utils-a23e49443a1634e7de8d9524da67d251bec2d561.tar.xz
fedora-doc-utils-a23e49443a1634e7de8d9524da67d251bec2d561.zip
Switched callout graphics to use the Fedora Logo motif. Also added
the Makefile, this time.
Diffstat (limited to 'stylesheet-images/Makefile')
-rw-r--r--stylesheet-images/Makefile31
1 files changed, 31 insertions, 0 deletions
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}