From 94463c7b0fdc9f51f80ff6816f77b12e4e10017b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 19 Jan 2009 18:01:48 -0400 Subject: [PATCH] Added --root option to Python install. This change from Levin. --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) 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)