]> git.cworth.org Git - grrobot/blob - src/svg/Makefile.am
Alternate two different background images. New planets for all squares.
[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 cell1.svg \
9 cell2.svg \
10 robot_blue.svg \
11 robot_green.svg \
12 robot_red.svg \
13 robot_yellow.svg \
14 target_blue_circle.svg \
15 target_blue_octagon.svg \
16 target_blue_square.svg \
17 target_blue_triangle.svg \
18 target_green_circle.svg \
19 target_green_octagon.svg \
20 target_green_square.svg \
21 target_green_triangle.svg \
22 target_red_circle.svg \
23 target_red_octagon.svg \
24 target_red_square.svg \
25 target_red_triangle.svg \
26 target_whirl.svg \
27 target_yellow_circle.svg \
28 target_yellow_octagon.svg \
29 target_yellow_square.svg \
30 target_yellow_triangle.svg \
31 wall.svg
32
33 grr_icon_svg.h: \
34 cell1.svg \
35 cell2.svg \
36 robot_blue.svg \
37 robot_green.svg \
38 robot_red.svg \
39 robot_yellow.svg \
40 target_blue_circle.svg \
41 target_blue_octagon.svg \
42 target_blue_square.svg \
43 target_blue_triangle.svg \
44 target_green_circle.svg \
45 target_green_octagon.svg \
46 target_green_square.svg \
47 target_green_triangle.svg \
48 target_red_circle.svg \
49 target_red_octagon.svg \
50 target_red_square.svg \
51 target_red_triangle.svg \
52 target_whirl.svg \
53 target_yellow_circle.svg \
54 target_yellow_octagon.svg \
55 target_yellow_square.svg \
56 target_yellow_triangle.svg \
57 wall.svg
58         rm -f $@
59         for svg in $^; do \
60                 echo -n "static char " >> $@; \
61                 echo -n "grr_icon_svg_$${svg/.svg/}[] = " | tr "a-z" "A-Z" >> $@; \
62                 ./bin2cstring $$svg >> $@; \
63                 echo ";" >> $@; \
64         done
65
66