changeset 256:cac9ad3df633

* use Autotool to install inkscape ext. of MadButterfly ( experimental! ) * pass distcheck
author "Mat <MatLinuxer2@gmail.com>"
date Thu, 15 Jan 2009 02:15:35 +0800
parents 96ca1357ebc4
children 50d253d0fcba
files Makefile.am configure.ac examples/dynamic/Makefile.am examples/tank/Makefile.am inkscape/Makefile.am
diffstat 5 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
--- 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
--- 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
--- /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)