summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-19 00:00:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:17 -0400
commit086ea40d9993f2ac86941a0462dabbd7f18d58f3 (patch)
tree9b905b976c620382f9cc048655254dc23588e365 /Makefile.am
parentba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (diff)
downloadfork-ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.gz
fork-ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.bz2
fork-ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.zip
We now compile with boost_date_time (although parts of the code have
been stubbed out as a result).
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am25
1 files changed, 20 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 5de2dd82..1c9a733c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,18 @@
SUBDIRS = gdtoa
+
+ESC_srcdir=`echo "$(srcdir)" | sed 's/\//\\\\\//g'`
+ESC_builddir=`echo "$(top_builddir)" | sed 's/\//\\\\\//g'`
+ESC_distdir=`echo "$(distdir)" | sed 's/\//\\\\\//g'`
+
EXTRA_DIST = docs tests
dist-hook:
rm -fr `find $(distdir) -name .svn`
+ cat $(srcdir)/Doxyfile | sed "s/%srcdir%/$(ESC_srcdir)/g" \
+ | sed "s/%distdir%/$(ESC_distdir)/g" > $(distdir)/Doxyfile
+ doxygen $(distdir)/Doxyfile
+
lib_LTLIBRARIES = libledger.la
if HAVE_BOOST_PYTHON
@@ -140,8 +149,8 @@ info_TEXINFOS = ledger.texi
######################################################################
-#lisp_LISP = ledger.el timeclock.el
-#dist_lisp_LISP = ledger.el timeclock.el
+lisp_LISP = ledger.el timeclock.el
+dist_lisp_LISP = ledger.el timeclock.el
######################################################################
@@ -170,18 +179,20 @@ DEBUG_LEVEL = 0
endif
ledger.so: pyledger.cc libledger.la gdtoa/libgdtoa.la libpyledger.la
+ SRCDIR="$(srcdir)" \
CFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS) -L. -L.libs -Lgdtoa -Lgdtoa/.libs" \
PYLIBS="$(PYLIBS)" \
DEBUG_LEVEL="$(DEBUG_LEVEL)" \
- python setup.py build --build-lib=.
+ python $(srcdir)/setup.py build --build-lib=.
install-exec-hook:
+ SRCDIR="$(srcdir)" \
CFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS) -L. -L.libs -Lgdtoa -Lgdtoa/.libs" \
PYLIBS="$(PYLIBS)" \
DEBUG_LEVEL="$(DEBUG_LEVEL)" \
- python setup.py install --prefix=$(prefix)
+ python $(srcdir)/setup.py install --prefix=$(prefix)
endif
@@ -220,13 +231,17 @@ endif
PyUnitTests_SOURCES =
PyUnitTests: PyUnitTests.py
- cp PyUnitTests.py PyUnitTests
+ cat $(srcdir)/PyUnitTests.py | sed "s/%srcdir%/$(ESC_srcdir)/g" \
+ | sed "s/%builddir%/$(ESC_builddir)/g" > PyUnitTests
chmod 755 PyUnitTests
######################################################################
all: check
+docs: ledger.info ledger.pdf
+ doxygen
+
check-syntax:
g++ -I. -Itests $(CPPFLAGS) $(UnitTests_CXXFLAGS) \
-o /dev/null -S $(CHK_SOURCES)