# HG changeset patch # User Thinker K.F. Li # Date 1218590757 -28800 # Node ID 171a8cb7e4b52cea5b54f7570f697a0f13da1e1c # Parent 45c6ca5b3e80a78ea401b9260addb05e635d285b Makefile for svg2code_ex diff -r 45c6ca5b3e80 -r 171a8cb7e4b5 examples/svg2code_ex/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/svg2code_ex/Makefile Wed Aug 13 09:25:57 2008 +0800 @@ -0,0 +1,21 @@ +SVG=svg2code_ex.svg +TOOLSDIR=../../tools + +all: $(SVG:C/.svg/.mb/) $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/) + +$(SVG:C/.svg/.mb/): $(SVG) + $(TOOLSDIR)/svg2code.py $(.ALLSRC) $@ + +$(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/) + m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@ + +$(SVG:C/.svg/.h/): $(SVG:C/.svg/.mb/) + m4 -I $(TOOLSDIR) mb_c_header.m4 $(.ALLSRC) > $@ + +clean: + for i in *.mb *.o *~; do \ + if [ -e "$$i" ]; then \ + echo "delete $$i"; \ + rm -f "$$i"; \ + fi; \ + done \ No newline at end of file