# HG changeset patch # User Thinker K.F. Li # Date 1236188932 -28800 # Node ID 535731374dfbb03b42993f5aa1ee5bf1edfe806a # Parent 1ca96c15812580a0baaa9528c0e160c94f25e7b1 More elegant dependency diff -r 1ca96c158125 -r 535731374dfb examples/menu/Makefile.am --- a/examples/menu/Makefile.am Thu Mar 05 00:54:42 2009 +0800 +++ b/examples/menu/Makefile.am Thu Mar 05 01:48:52 2009 +0800 @@ -2,25 +2,37 @@ #SUFFIXES=.svg .so -list.so:list.svg - $(top_srcdir)/tools/svg2code.py $< $<.mb - m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) - m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) +list.so:list.c list.h $(MAKE) $(<:.svg=.o) $(CC) -shared -o $@ $(<:.svg=.o) -browser.so:browser.svg +list.mb: $(srcdir)/list.svg $(top_srcdir)/tools/svg2code.py $< $<.mb + +list.c: list.mb list.h m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) + +list.h: list.mb m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) + +browser.so: browser.c browser.h $(MAKE) $(<:.svg=.o) $(CC) -shared -o $@ $(<:.svg=.o) +browser.h: browser.mb + m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) + +browser.c: browser.mb browser.h + m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) + +browser.mb: $(srcdir)/browser.svg + $(top_srcdir)/tools/svg2code.py $< $<.mb + noinst_PROGRAMS = menu filebrowser list.so browser.so EXTRA_DIST = menu_SOURCES = main.c animated_menu.c animated_menu.h -nodist_dynamic_SOURCES = +nodist_menu_SOURCES = CFLAGS = @pangocairo_CFLAGS@ menu_CFLAGS = @pangocairo_CFLAGS@ menu_LDFLAGS = @pangocairo_LIBS@