summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-12 01:58:42 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-12 01:58:42 +0100
commit95225866951c834bdde91fb0f0fa1f2ee367fe0a (patch)
tree73aaff2d62f198dc07d100273292cc88814b73dc /source4/lib
parentbbc567c8311c6ad14d56c55643a3ebe281577d82 (diff)
downloadsamba-95225866951c834bdde91fb0f0fa1f2ee367fe0a.tar.gz
samba-95225866951c834bdde91fb0f0fa1f2ee367fe0a.tar.bz2
samba-95225866951c834bdde91fb0f0fa1f2ee367fe0a.zip
Create the required directories when installing Python code.
(This used to be commit 8ef36fe54555cc0c5ac0d1f118d0a1a7b770c2fd)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb.mk2
-rw-r--r--source4/lib/tdb/tdb.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb.mk b/source4/lib/ldb/ldb.mk
index 6d0ad44d38..0b42e6ffcf 100644
--- a/source4/lib/ldb/ldb.mk
+++ b/source4/lib/ldb/ldb.mk
@@ -74,6 +74,8 @@ _ldb.$(SHLIBEXT): $(LIBS) ldb_wrap.o
$(SHLD) $(SHLD_FLAGS) -o _ldb.$(SHLIBEXT) ldb_wrap.o $(LIB_FLAGS)
install-python:: build-python
+ mkdir -p $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(0)"` \
+ $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)"`
cp $(ldbdir)/ldb.py $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(0)"`
cp _ldb.$(SHLIBEXT) $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)"`
diff --git a/source4/lib/tdb/tdb.mk b/source4/lib/tdb/tdb.mk
index 976589fd0f..22e7e295fb 100644
--- a/source4/lib/tdb/tdb.mk
+++ b/source4/lib/tdb/tdb.mk
@@ -45,6 +45,8 @@ install:: installdirs installbin installheaders installlibs \
$(PYTHON_INSTALL_TARGET)
install-python:: build-python
+ mkdir -p $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(0)"` \
+ $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)"`
cp $(tdbdir)/tdb.py $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(0)"`
cp _tdb.$(SHLIBEXT) $(DESTDIR)`$(PYTHON) -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)"`