]> git.cworth.org Git - grrobot/blob - src/svg/Makefile.am
grrobot will now load SVG icons from /share/grrobot/*.svg
[grrobot] / src / svg / Makefile.am
1 noinst_HEADERS=grr_icon_svg.h
2
3 noinst_PROGRAMS = bin2cstring deflate
4
5 bin2cstring_SOURCES = bin2cstring.c
6
7 deflate_SOURCES = deflate.c
8
9 deflate_LDADD = -lz
10
11 pkgdata_DATA = \
12 cell.svg \
13 robot_blue.svg \
14 robot_green.svg \
15 robot_red.svg \
16 robot_yellow.svg \
17 target_blue_circle.svg \
18 target_blue_octagon.svg \
19 target_blue_square.svg \
20 target_blue_triangle.svg \
21 target_green_circle.svg \
22 target_green_octagon.svg \
23 target_green_square.svg \
24 target_green_triangle.svg \
25 target_red_circle.svg \
26 target_red_octagon.svg \
27 target_red_square.svg \
28 target_red_triangle.svg \
29 target_whirl.svg \
30 target_yellow_circle.svg \
31 target_yellow_octagon.svg \
32 target_yellow_square.svg \
33 target_yellow_triangle.svg \
34 wall.svg
35
36 grr_icon_svg.h: \
37 cell.svg \
38 robot_blue.svg \
39 robot_green.svg \
40 robot_red.svg \
41 robot_yellow.svg \
42 target_blue_circle.svg \
43 target_blue_octagon.svg \
44 target_blue_square.svg \
45 target_blue_triangle.svg \
46 target_green_circle.svg \
47 target_green_octagon.svg \
48 target_green_square.svg \
49 target_green_triangle.svg \
50 target_red_circle.svg \
51 target_red_octagon.svg \
52 target_red_square.svg \
53 target_red_triangle.svg \
54 target_whirl.svg \
55 target_yellow_circle.svg \
56 target_yellow_octagon.svg \
57 target_yellow_square.svg \
58 target_yellow_triangle.svg \
59 wall.svg
60         rm -f $@
61         for svg in $^; do \
62                 echo -n "static char " >> $@; \
63                 echo -n "grr_icon_svg_$${svg/.svg/}[] = " | tr "a-z" "A-Z" >> $@; \
64                 ./bin2cstring $$svg >> $@; \
65                 echo ";" >> $@; \
66         done
67
68
69 %.svg.deflate: %.svg
70         ./deflate $< > $@