summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-04 09:53:10 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:37 -0400
commit93096b77f3c03b826c8857e4817ccd1bca52f9ee (patch)
tree403a0ddfc0241b6b959d7b9c4eefabd77832e166 /Makefile.am
parent0214a136c2b21b3cff3dfc94095d2badc3136b1b (diff)
downloadfork-ledger-93096b77f3c03b826c8857e4817ccd1bca52f9ee.tar.gz
fork-ledger-93096b77f3c03b826c8857e4817ccd1bca52f9ee.tar.bz2
fork-ledger-93096b77f3c03b826c8857e4817ccd1bca52f9ee.zip
Got PyUnitTests functioning again.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index cddd1257..46d27666 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -168,7 +168,7 @@ CLEANFILES += ledger.so
clean-local:
rm -fr build
-ledger_so_SOURCES = src/pyledger.cc
+ledger_so_SOURCES = src/pyledger.cc src/py_amount.cc
ledger_so_DEPENDENCIES = libledger.la gdtoa/libgdtoa.la libpyledger.la
PYLIBS = pyledger ledger gdtoa gmp boost_date_time \
@@ -184,19 +184,19 @@ if HAVE_LIBOFX
PYLIBS += ofx
endif
-ledger.so: src/pyledger.cc \
- libledger.la gdtoa/libgdtoa.la libpyledger.la
- SRCDIR="$(srcdir)" \
+PYLEDGER_SRC = src/pyledger.cc \
+ src/py_amount.cc
+
+ledger.so: $(ledger_so_SOURCES) $(ledger_so_DEPENDENCIES)
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libledger_la_CPPFLAGS)" \
LDFLAGS="$(LDFLAGS) -L. -L.libs -Lgdtoa -Lgdtoa/.libs" \
- PYLIBS="$(PYLIBS)" \
+ PYLIBS="$(PYLIBS)" SRCDIR="$(srcdir)" \
python $(srcdir)/setup.py build --build-lib=.
install-exec-hook:
- SRCDIR="$(srcdir)" \
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libledger_la_CPPFLAGS)" \
LDFLAGS="$(LDFLAGS) -L. -L.libs -Lgdtoa -Lgdtoa/.libs" \
- PYLIBS="$(PYLIBS)" \
+ PYLIBS="$(PYLIBS)" SRCDIR="$(srcdir)" \
python $(srcdir)/setup.py install --prefix=$(prefix)
endif