Mercurial > MadButterfly
changeset 72:171a8cb7e4b5
Makefile for svg2code_ex
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 13 Aug 2008 09:25:57 +0800 |
parents | 45c6ca5b3e80 |
children | 9ab15ebc9061 |
files | examples/svg2code_ex/Makefile |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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