diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index b3f7c17a..019fe80b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -78,12 +78,20 @@ if HAVE_BOOST_PYTHON noinst_PROGRAMS = ledger.so +if READ_GNUCASH +READ_GNUCASH_VALUE = true +else +READ_GNUCASH_VALUE = false +endif + ledger.so: python.cc libledger.la CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \ + READ_GNUCASH="$(READ_GNUCASH_VALUE)" \ python setup.py build --build-lib=. install-exec-hook: CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \ + READ_GNUCASH="$(READ_GNUCASH_VALUE)" \ python setup.py install --prefix=$(prefix) endif |