summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-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