Several changes to Makefile.am for 'make dist' and 'make distcheck' to work.
This commit is contained in:
parent
dede5e71bf
commit
ef0d32cd5d
1 changed files with 18 additions and 40 deletions
56
Makefile.am
56
Makefile.am
|
|
@ -1,3 +1,5 @@
|
||||||
|
EXTRA_DIST = LICENSE scripts ledger.vim sample.dat
|
||||||
|
|
||||||
lib_LTLIBRARIES = libamounts.la libledger.la
|
lib_LTLIBRARIES = libamounts.la libledger.la
|
||||||
|
|
||||||
libamounts_la_CXXFLAGS =
|
libamounts_la_CXXFLAGS =
|
||||||
|
|
@ -76,6 +78,7 @@ pkginclude_HEADERS = \
|
||||||
option.h \
|
option.h \
|
||||||
parser.h \
|
parser.h \
|
||||||
qif.h \
|
qif.h \
|
||||||
|
ofx.h \
|
||||||
quotes.h \
|
quotes.h \
|
||||||
reconcile.h \
|
reconcile.h \
|
||||||
report.h \
|
report.h \
|
||||||
|
|
@ -114,9 +117,12 @@ dist_lisp_LISP = ledger.el timeclock.el
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
EXTRA_DIST += setup.py
|
||||||
|
|
||||||
if HAVE_BOOST_PYTHON
|
if HAVE_BOOST_PYTHON
|
||||||
|
|
||||||
noinst_PROGRAMS = amounts.so
|
noinst_PROGRAMS = amounts.so
|
||||||
|
amounts_so_SOURCES = amounts.cc fdstream.hpp
|
||||||
|
|
||||||
amounts.so: amounts.cc libamounts.la
|
amounts.so: amounts.cc libamounts.la
|
||||||
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
||||||
|
|
@ -130,47 +136,19 @@ endif
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
TESTS = alltests
|
TESTS = RegressionTests
|
||||||
|
|
||||||
CXXTEST_DIR = /usr/local/cxxtest
|
DISTCLEANFILES = RegressionTests
|
||||||
TESTGEN = $(CXXTEST_DIR)/cxxtestgen.py
|
|
||||||
TESTSUITES = tests/*.h
|
|
||||||
|
|
||||||
AM_CXXFLAGS =
|
RegressionTests:
|
||||||
if HAVE_EXPAT
|
echo "exit 0" > $@
|
||||||
AM_CXXFLAGS += -DHAVE_EXPAT=1
|
chmod 755 $@
|
||||||
endif
|
|
||||||
if HAVE_XMLPARSE
|
|
||||||
AM_CXXFLAGS += -DHAVE_XMLPARSE=1
|
|
||||||
endif
|
|
||||||
if HAVE_LIBOFX
|
|
||||||
AM_CXXFLAGS += -DHAVE_LIBOFX=1
|
|
||||||
endif
|
|
||||||
if DEBUG
|
|
||||||
AM_CXXFLAGS += -DDEBUG_LEVEL=4
|
|
||||||
endif
|
|
||||||
|
|
||||||
alltests.cc: $(TESTSUITES)
|
|
||||||
test -f $(TESTGEN) && python $(TESTGEN) -o $@ --error-printer $(TESTSUITES)
|
|
||||||
|
|
||||||
alltests: alltests.cc ledger
|
|
||||||
$(CXXCOMPILE) -I$(CXXTEST_DIR) -lexpat -lgmp -lpcre -o $@ \
|
|
||||||
alltests.cc -L. -L.libs -lamounts -lledger
|
|
||||||
|
|
||||||
runtests: alltests
|
|
||||||
LD_LIBRARY_PATH=.libs ./alltests && tests/regress && tests/regtest
|
|
||||||
|
|
||||||
verify: runtests
|
|
||||||
python tests/runtests.py
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
all-clean: maintainer-clean
|
release:
|
||||||
rm -fr *~ .*~ .\#* *.html *.info *.pdf *.a *.so *.o *.lo *.la \
|
make -j3 distcheck \
|
||||||
*.elc *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr \
|
CPPFLAGS="-I/usr/local/include -I/opt/local/include " \
|
||||||
.gdb_history gmon.out h out TAGS ledger valexpr .deps \
|
LDFLAGS="-L/usr/local/lib -L/opt/local/lib"
|
||||||
.libs build AUTHORS COPYING INSTALL Makefile acconf.h \
|
|
||||||
acconf.h.in aclocal.m4 autom4te config.guess config.sub \
|
# Makefile.am ends here
|
||||||
configure depcomp install-sh libtool ltconfig ltmain.sh \
|
|
||||||
missing stamp texinfo.tex Makefile.in mkinstalldirs \
|
|
||||||
elisp-comp elc-stamp py-compile
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue