summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-09-27 16:02:48 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-09-27 16:02:48 +0000
commitc6abf35401a2ca73839fa3e4ff0612dbdd06005d (patch)
tree90007aa48d49260c2d66df3af519ca3a4fb39d6a
parent8d88b9ea3166990cc6c2b6800b172d7e1ddb8e5c (diff)
downloadlasso-c6abf35401a2ca73839fa3e4ff0612dbdd06005d.tar.gz
lasso-c6abf35401a2ca73839fa3e4ff0612dbdd06005d.tar.xz
lasso-c6abf35401a2ca73839fa3e4ff0612dbdd06005d.zip
swig files were split, dependencies needed to be updated
-rw-r--r--java/Makefile.am5
-rw-r--r--perl/Makefile.am4
-rw-r--r--php/Makefile.am4
-rw-r--r--python/Makefile.am4
4 files changed, 8 insertions, 9 deletions
diff --git a/java/Makefile.am b/java/Makefile.am
index d5f13ff6..1354ef72 100644
--- a/java/Makefile.am
+++ b/java/Makefile.am
@@ -117,9 +117,8 @@ EXTRA_DIST = $(SWIG_OUTPUTS) $(SWIG_WSF_OUTPUTS)
CLEANFILES = $(JAVA_CRUFT)
MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_WSF_OUTPUTS)
-
-lasso_wrap.c lasso.java: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i \
- $(top_srcdir)/swig/inheritance.h
+SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
+lasso_wrap.c lasso.java: $(SWIG_I_FILES)
$(SWIG) -v -java -module lasso -package com.entrouvert.lasso -o lasso_wrap.c \
$(top_srcdir)/swig/Lasso.i
cp lasso_wrap.c lasso_wrap.c.bak
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 4f73ef41..5e080607 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -14,8 +14,8 @@ PERL_CRUFT=pm_to_blib lasso.bs lasso_wrap.o $(PERL_MAKEFILE).old
fakedir=$(prefix)
fake_DATA=build-perl-stamp
-lasso_wrap.c lasso.pm: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i \
- $(top_srcdir)/swig/inheritance.h
+SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
+lasso_wrap.c lasso.pm: $(SWIG_I_FILES)
$(SWIG) -v -perl5 -module lasso -o lasso_wrap.c $(top_srcdir)/swig/Lasso.i
$(PERL_MAKEFILE): lasso.pm
diff --git a/php/Makefile.am b/php/Makefile.am
index c0566561..f747d6d5 100644
--- a/php/Makefile.am
+++ b/php/Makefile.am
@@ -8,8 +8,8 @@ lasso_la_SOURCES = lasso_wrap.c
php_extensiondir = ${prefix}@PHP_UNPREFIXED_EXTENSION_DIR@
-lasso_wrap.c php_lasso.h lasso.php: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i \
- $(top_srcdir)/swig/inheritance.h
+SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
+lasso_wrap.c php_lasso.h lasso.php: $(SWIG_I_FILES)
$(SWIG) -v -php4 -module lasso -o lasso_wrap.c -dlname lasso $(top_srcdir)/swig/Lasso.i
cp lasso_wrap.c lasso_wrap.c.bak
$(PYTHON) $(srcdir)/patch_swig_output.py < lasso_wrap.c.bak > lasso_wrap.c
diff --git a/python/Makefile.am b/python/Makefile.am
index 12eaa300..42399c59 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -17,8 +17,8 @@ else
_lasso_la_LDFLAGS = -no-undefined -module -avoid-version
endif
endif
-lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i \
- $(top_srcdir)/swig/inheritance.h
+SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
+lasso_wrap.c lasso.py: $(SWIG_I_FILES)
$(SWIG) -v -python -module lasso -o lasso_wrap.c $(top_srcdir)/swig/Lasso.i
cp lasso_wrap.c lasso_wrap.c.bak
sed -e 's/^ int res = 0;$$//' \