r26292: Make sure swig directory exists.
[jelmer/samba4-debian.git] / source / lib / talloc / Makefile.in
index 1aa35bdb39dacb576fa6bfe76422aa5f47d954ee..a33085f95bf5bffc7c685c1b96d349ed859a8fb5 100644 (file)
@@ -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} -d $(DESTDIR)`swig -swiglib` || true
        which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
 
 doc: talloc.3 talloc.3.html