diff options
Diffstat (limited to 'pics/crystalsvg/Makefile.am')
-rw-r--r-- | pics/crystalsvg/Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pics/crystalsvg/Makefile.am b/pics/crystalsvg/Makefile.am new file mode 100644 index 000000000..3fafc83b0 --- /dev/null +++ b/pics/crystalsvg/Makefile.am @@ -0,0 +1,23 @@ +KDE_ICON=AUTO + +crystaldir=$(kde_icondir)/crystalsvg +crystal_DATA=index.theme + +generate: + @echo "Converting SVG files to PNG files, starting..." + @echo "Sizes: 16x16; 22x22; 32x32; 48x48; 64x64; 128x128" + @rm -f $(top_builddir)/pics/crystalsvg/generated -Rf + @mkdir $(top_builddir)/pics/crystalsvg/generated + + @for file in $(top_srcdir)/pics/crystalsvg/*.svg*; do \ + echo "Processing: $$file..."; \ + $(top_builddir)/pics/ksvgtopng 16 16 $$file $(top_builddir)/pics/crystalsvg/generated/`basename $$file | sed -e 's/crsc/cr16/' | sed -e 's/svg\|svgz/png/'`; \ + $(top_builddir)/pics/ksvgtopng 22 22 $$file $(top_builddir)/pics/crystalsvg/generated/`basename $$file | sed -e 's/crsc/cr22/' | sed -e 's/svg\|svgz/png/'`; \ + $(top_builddir)/pics/ksvgtopng 32 32 $$file $(top_builddir)/pics/crystalsvg/generated/`basename $$file | sed -e 's/crsc/cr32/' | sed -e 's/svg\|svgz/png/'`; \ + $(top_builddir)/pics/ksvgtopng 48 48 $$file $(top_builddir)/pics/crystalsvg/generated/`basename $$file | sed -e 's/crsc/cr48/' | sed -e 's/svg\|svgz/png/'`; \ + $(top_builddir)/pics/ksvgtopng 64 64 $$file $(top_builddir)/pics/crystalsvg/generated/`basename $$file | sed -e 's/crsc/cr64/' | sed -e 's/svg\|svgz/png/'`; \ + $(top_builddir)/pics/ksvgtopng 128 128 $$file $(top_builddir)/pics/crystalsvg/generated/`basename $$file | sed -e 's/crsc/cr128/' | sed -e 's/svg\|svgz/png/'`; \ + done + +.PHONY: generate + |