# HG changeset patch # User "Mat " # Date 1231956935 -28800 # Node ID cac9ad3df63373ecd11dabb872459c430c938017 # Parent 96ca1357ebc4c50416b3ee93b409c33e17b62d04 * use Autotool to install inkscape ext. of MadButterfly ( experimental! ) * pass distcheck diff -r 96ca1357ebc4 -r cac9ad3df633 Makefile.am --- a/Makefile.am Mon Jan 05 10:20:25 2009 +0800 +++ b/Makefile.am Thu Jan 15 02:15:35 2009 +0800 @@ -1,4 +1,4 @@ -SUBDIRS = src include tools examples +SUBDIRS = src include tools examples inkscape pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libmbfly.pc -EXTRA_DIST = libmbfly.pc.in mb Doxyfile README.h +EXTRA_DIST = libmbfly.pc.in Doxyfile README.h diff -r 96ca1357ebc4 -r cac9ad3df633 configure.ac --- a/configure.ac Mon Jan 05 10:20:25 2009 +0800 +++ b/configure.ac Thu Jan 15 02:15:35 2009 +0800 @@ -44,5 +44,6 @@ examples/dynamic/Makefile src/Makefile include/Makefile + inkscape/Makefile tools/Makefile]) AC_OUTPUT diff -r 96ca1357ebc4 -r cac9ad3df633 examples/dynamic/Makefile.am --- a/examples/dynamic/Makefile.am Mon Jan 05 10:20:25 2009 +0800 +++ b/examples/dynamic/Makefile.am Thu Jan 15 02:15:35 2009 +0800 @@ -1,10 +1,10 @@ include $(top_srcdir)/config.mk noinst_PROGRAMS = dynamic hello button.so scene.so -EXTRA_DIST = menu.svg button.svg +EXTRA_DIST = menu.svg button.svg scene.svg scene.c scene.h scene.mb dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h -nodist_dynamic_SOURCES = menu.c menu.h menu.mb +nodist_dynamic_SOURCES = menu.c menu.h menu.mb CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES) dynamic_LDFLAGS = @cairo_LIBS@ dynamic_LDADD = $(top_builddir)/src/libmbfly.la diff -r 96ca1357ebc4 -r cac9ad3df633 examples/tank/Makefile.am --- a/examples/tank/Makefile.am Mon Jan 05 10:20:25 2009 +0800 +++ b/examples/tank/Makefile.am Thu Jan 15 02:15:35 2009 +0800 @@ -1,7 +1,7 @@ include $(top_srcdir)/config.mk noinst_PROGRAMS = tank -EXTRA_DIST = calculator_scr.svg +#EXTRA_DIST = svg_sources = brick.c bullet.c bush.c mud.c rock.c \ tank1.c tank2.c tank_en.c bang.c tank_SOURCES = tank_main.c diff -r 96ca1357ebc4 -r cac9ad3df633 inkscape/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inkscape/Makefile.am Thu Jan 15 02:15:35 2009 +0800 @@ -0,0 +1,8 @@ +extdir=$(datadir)/inkscape/extenstions +ext_py=AssignSymbol.py MB_EditButton.py MB_Frame.py +ext_DATA=$(ext_py) MB_EditButton.inx MB_Frame.inx MB_assignSymbol.inx mbtest.svg + +install-data-hook: + for file in $(ext_py); do cd "$(DESTDIR)$(extdir)"; tgt=$${file#inkscape/}; chmod +x $${tgt}; done + +EXTRA_DIST=$(ext_DATA)