]> git.cworth.org Git - grrobot/blobdiff - src/svg/Makefile.am
grrobot will now load SVG icons from /share/grrobot/*.svg
[grrobot] / src / svg / Makefile.am
index b143c9c48112b54441a04d5f6ba3b8f53a9af7b7..9a495355069754cbfb802266ffa5f6616b6a6c2e 100644 (file)
@@ -1,9 +1,13 @@
 noinst_HEADERS=grr_icon_svg.h
 
-noinst_PROGRAMS = bin2cstring
+noinst_PROGRAMS = bin2cstring deflate
 
 bin2cstring_SOURCES = bin2cstring.c
 
+deflate_SOURCES = deflate.c
+
+deflate_LDADD = -lz
+
 pkgdata_DATA = \
 cell.svg \
 robot_blue.svg \
@@ -30,37 +34,37 @@ target_yellow_triangle.svg \
 wall.svg
 
 grr_icon_svg.h: \
-cell.svgz \
-robot_blue.svgz \
-robot_green.svgz \
-robot_red.svgz \
-robot_yellow.svgz \
-target_blue_circle.svgz \
-target_blue_octagon.svgz \
-target_blue_square.svgz \
-target_blue_triangle.svgz \
-target_green_circle.svgz \
-target_green_octagon.svgz \
-target_green_square.svgz \
-target_green_triangle.svgz \
-target_red_circle.svgz \
-target_red_octagon.svgz \
-target_red_square.svgz \
-target_red_triangle.svgz \
-target_whirl.svgz \
-target_yellow_circle.svgz \
-target_yellow_octagon.svgz \
-target_yellow_square.svgz \
-target_yellow_triangle.svgz \
-wall.svgz
+cell.svg \
+robot_blue.svg \
+robot_green.svg \
+robot_red.svg \
+robot_yellow.svg \
+target_blue_circle.svg \
+target_blue_octagon.svg \
+target_blue_square.svg \
+target_blue_triangle.svg \
+target_green_circle.svg \
+target_green_octagon.svg \
+target_green_square.svg \
+target_green_triangle.svg \
+target_red_circle.svg \
+target_red_octagon.svg \
+target_red_square.svg \
+target_red_triangle.svg \
+target_whirl.svg \
+target_yellow_circle.svg \
+target_yellow_octagon.svg \
+target_yellow_square.svg \
+target_yellow_triangle.svg \
+wall.svg
        rm -f $@
-       for svgz in $^; do \
-               echo -n "char " >> $@; \
-               echo -n "grr_icon_svg_$${svgz/.svgz/}[] = " | tr "a-z" "A-Z" >> $@; \
-               ./bin2cstring $$svgz >> $@; \
+       for svg in $^; do \
+               echo -n "static char " >> $@; \
+               echo -n "grr_icon_svg_$${svg/.svg/}[] = " | tr "a-z" "A-Z" >> $@; \
+               ./bin2cstring $$svg >> $@; \
                echo ";" >> $@; \
        done
 
 
-%.svgz: %.svg
-       gzip -c $< > $@
+%.svg.deflate: %.svg
+       ./deflate $< > $@