]> git.cworth.org Git - grrobot/blob - src/svg/Makefile.am
88dc5f0c6c39ee1e4fbe62411775f88d62a41223
[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.svg \
34 robot_blue.svg \
35 robot_green.svg \
36 robot_red.svg \
37 robot_yellow.svg \
38 target_blue_circle.svg \
39 target_blue_octagon.svg \
40 target_blue_square.svg \
41 target_blue_triangle.svg \
42 target_green_circle.svg \
43 target_green_octagon.svg \
44 target_green_square.svg \
45 target_green_triangle.svg \
46 target_red_circle.svg \
47 target_red_octagon.svg \
48 target_red_square.svg \
49 target_red_triangle.svg \
50 target_whirl.svg \
51 target_yellow_circle.svg \
52 target_yellow_octagon.svg \
53 target_yellow_square.svg \
54 target_yellow_triangle.svg \
55 wall.svg
56         rm -f $@
57         for svg in $^; do \
58                 echo -n "static char " >> $@; \
59                 echo -n "grr_icon_svg_$${svg/.svg/}[] = " | tr "a-z" "A-Z" >> $@; \
60                 ./bin2cstring $$svg >> $@; \
61                 echo ";" >> $@; \
62         done
63
64