diff options
-rw-r--r-- | Makefile.am | 5 |
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) |