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