r26276: Install SWIG files if swig is present.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 4 Dec 2007 00:37:28 +0000 (01:37 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 13 Feb 2008 00:40:11 +0000 (01:40 +0100)
(cherry picked from talloc parts of commit dfd5b456f932268e2b1a82e2775037d356b9483e)

Michael

source/lib/talloc/Makefile.in

index 6eee227f7ac80a2384e9938028fad57c3fb45027..5d93e1f2fb9bd4f26af350ad8cd0d6aacbc8e87a 100644 (file)
@@ -56,6 +56,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