summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-19 18:01:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-19 18:01:48 -0400
commit94463c7b0fdc9f51f80ff6816f77b12e4e10017b (patch)
tree06dfbccc3d4cab1bd6aa2ab142297d06f16d5097
parent009dd3969a5cf965a685702b71aee53bf957b206 (diff)
downloadledger-94463c7b0fdc9f51f80ff6816f77b12e4e10017b.tar.gz
ledger-94463c7b0fdc9f51f80ff6816f77b12e4e10017b.tar.bz2
ledger-94463c7b0fdc9f51f80ff6816f77b12e4e10017b.zip
Added --root option to Python install. This change from Levin.
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 95437fdb..2ede5c75 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -200,6 +200,11 @@ pyexec_PROGRAMS = ledger.so
clean-local:
rm -fr build
+install-exec-hook:
+ CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
+ $(PYTHON) python/setup.py install \
+ --prefix=$(prefix) --root=$(DESTDIR)/
+
ledger_so_SOURCES = $(libamounts_la_SOURCES) $(libledger_la_SOURCES) \
$(libpyledger_la_SOURCES) python/pyledger.cc
ledger_so_DEPENDENCIES = $(lib_LTLIBRARIES)