Mercurial > MadButterfly
changeset 316:535731374dfb
More elegant dependency
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 05 Mar 2009 01:48:52 +0800 |
parents | 1ca96c158125 |
children | d0f8642d3508 |
files | examples/menu/Makefile.am |
diffstat | 1 files changed, 18 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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@