summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-04 01:37:28 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:02 +0100
commit71ae20df2c7e346c4b115bbed7c579c881369fdb (patch)
treedf7454e8fb808b154b5ee7705b58e1bef558a10c
parentb038240ac72fa34a132eb52bda28bbb80f82c29e (diff)
downloadsamba-71ae20df2c7e346c4b115bbed7c579c881369fdb.tar.gz
samba-71ae20df2c7e346c4b115bbed7c579c881369fdb.tar.bz2
samba-71ae20df2c7e346c4b115bbed7c579c881369fdb.zip
r26276: Install SWIG files if swig is present.
(This used to be commit dfd5b456f932268e2b1a82e2775037d356b9483e)
-rw-r--r--source4/lib/ldb/Makefile.in3
-rw-r--r--source4/lib/talloc/Makefile.in1
-rw-r--r--source4/lib/tdb/Makefile.in3
3 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in
index 23a89c98c6..26b77d7dc1 100644
--- a/source4/lib/ldb/Makefile.in
+++ b/source4/lib/ldb/Makefile.in
@@ -244,6 +244,9 @@ build-python: lib/libldb.$(SHLIBEXT) ldb_wrap.c ldb.py
install-python: build-python
./setup.py install --prefix=$(prefix)
+install-swig:
+ cp ldb.i `$(SWIG) -swiglib`
+
check-python: build-python
# FIXME: This isn't portable
LD_LIBRARY_PATH=lib PYTHONPATH=.:build/lib.linux-i686-2.4/ trial tests/python/api.py
diff --git a/source4/lib/talloc/Makefile.in b/source4/lib/talloc/Makefile.in
index 7110b04e12..e872ec42cf 100644
--- a/source4/lib/talloc/Makefile.in
+++ b/source4/lib/talloc/Makefile.in
@@ -57,6 +57,7 @@ install: all
${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
+ which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib`
doc: talloc.3 talloc.3.html
diff --git a/source4/lib/tdb/Makefile.in b/source4/lib/tdb/Makefile.in
index 7ca78e5317..e973dc21ad 100644
--- a/source4/lib/tdb/Makefile.in
+++ b/source4/lib/tdb/Makefile.in
@@ -125,5 +125,8 @@ check-python: build-python
# FIXME: Should be more portable:
LD_LIBRARY_PATH=. PYTHONPATH=.:build/lib.linux-i686-2.4 trial python/tests/simple.py
+install-swig:
+ cp tdb.i `swig -swiglib`
+
clean-python:
./setup.py clean