diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-25 03:06:50 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:46:07 +0100 |
commit | b6d657863c6e19604f7ba89e4e5f5bc3a4758683 (patch) | |
tree | e81caf64933e6d8ffd903bc8eb114327fa07b5f2 /source4/lib/tdb/Makefile.in | |
parent | 86be3d2f61f29e035277e4b4cfaec6a20a3ec85e (diff) | |
download | samba-b6d657863c6e19604f7ba89e4e5f5bc3a4758683.tar.gz samba-b6d657863c6e19604f7ba89e4e5f5bc3a4758683.tar.bz2 samba-b6d657863c6e19604f7ba89e4e5f5bc3a4758683.zip |
r26108: Add makefile rules for building, installing and checking python bindings.
(This used to be commit d8d04300d2c2613268e8bf9e6981d172471514da)
Diffstat (limited to 'source4/lib/tdb/Makefile.in')
-rw-r--r-- | source4/lib/tdb/Makefile.in | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/source4/lib/tdb/Makefile.in b/source4/lib/tdb/Makefile.in index 2a1df7829c..651fc654de 100644 --- a/source4/lib/tdb/Makefile.in +++ b/source4/lib/tdb/Makefile.in @@ -68,10 +68,10 @@ libtdb.a: $(TDB_OBJ) ar -rv libtdb.a $(TDB_OBJ) libtdb.$(SHLIBEXT): $(SOLIB) - ln -s $< $@ + ln -fs $< $@ $(SONAME): $(SOLIB) - ln -s $< $@ + ln -fs $< $@ $(SOLIB): $(TDB_OBJ) $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) @SONAMEFLAG@$(SONAME) @@ -110,3 +110,16 @@ distclean: clean realdistclean: distclean rm -f configure include/config.h.in + +build-python: libtdb.$(SHLIBEXT) + ./setup.py build + +install-python: + ./setup.py install --prefix=$(prefix) + +check-python: build-python + # FIXME: Should be more portable: + LD_LIBRARY_PATH=. PYTHONPATH=.:build/lib.linux-i686-2.4 trial python/tests/simple.py + +clean-python: + ./setup.py clean |