# HG changeset patch # User Thinker K.F. Li # Date 1236269402 -28800 # Node ID 85951268ee0f4a88f40e673c33af3e5d51f5f19b # Parent 4453ea44a83db4ba51ecf318b87adde742a2d466 Fix bug in makefile for examples/menu diff -r 4453ea44a83d -r 85951268ee0f examples/menu/Makefile.am --- a/examples/menu/Makefile.am Thu Mar 05 14:52:06 2009 +0800 +++ b/examples/menu/Makefile.am Fri Mar 06 00:10:02 2009 +0800 @@ -2,31 +2,32 @@ #SUFFIXES=.svg .so -list.so:list.c list.h - $(MAKE) $(<:.svg=.o) - $(CC) $(CFLAGS) -I ../../include -shared -o $@ $(<:.svg=.o) +list.so: list.o + $(CC) $(CFLAGS) -I ../../include -shared -o $@ $< -list.svg.mb: $(srcdir)/list.svg - $(top_srcdir)/tools/svg2code.py $< $<.mb +list.o: list.h + +list.mb: $(srcdir)/list.svg + $(top_srcdir)/tools/svg2code.py $< $@ -list.c: list.svg.mb list.h - m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $(<:.svg.mb=.c) +list.c: list.mb + m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ -list.h: list.svg.mb - m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $(<:.svg.mb=.h) +list.h: list.mb + m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ -browser.so: browser.c browser.h - $(MAKE) $(<:.svg=.o) - $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.svg=.o) +browser.so: browser.o + $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $< + +browser.o: browser.h browser.h: browser.mb - m4 -I $(top_srcdir)/tools mb_c_header.m4 $(<:.svg=.mb) > $(<:.mb=.h) + m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ -browser.c: browser.mb browser.h - m4 -I $(top_srcdir)/tools mb_c_source.m4 $(<:.svg=.mb) > $(<:.mb=.c) - +browser.c: browser.mb + m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ browser.mb: $(srcdir)/browser.svg - $(top_srcdir)/tools/svg2code.py $< $(<:.svg=.mb) + $(top_srcdir)/tools/svg2code.py $< $@ noinst_PROGRAMS = menu filebrowser list.so browser.so EXTRA_DIST =