comparison examples/svg2code_ex/Makefile @ 72:171a8cb7e4b5

Makefile for svg2code_ex
author Thinker K.F. Li <thinker@branda.to>
date Wed, 13 Aug 2008 09:25:57 +0800
parents
children 9ab15ebc9061
comparison
equal deleted inserted replaced
71:45c6ca5b3e80 72:171a8cb7e4b5
1 SVG=svg2code_ex.svg
2 TOOLSDIR=../../tools
3
4 all: $(SVG:C/.svg/.mb/) $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/)
5
6 $(SVG:C/.svg/.mb/): $(SVG)
7 $(TOOLSDIR)/svg2code.py $(.ALLSRC) $@
8
9 $(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/)
10 m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@
11
12 $(SVG:C/.svg/.h/): $(SVG:C/.svg/.mb/)
13 m4 -I $(TOOLSDIR) mb_c_header.m4 $(.ALLSRC) > $@
14
15 clean:
16 for i in *.mb *.o *~; do \
17 if [ -e "$$i" ]; then \
18 echo "delete $$i"; \
19 rm -f "$$i"; \
20 fi; \
21 done