diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-10 18:56:40 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-11 18:35:52 -0400 |
commit | 60b178789f7146621e1f88b195eb8b455a761bee (patch) | |
tree | df95ce70a4f83b5ef9bc9bc3dbd53f624a218860 /Makefile.am | |
parent | f826854a1ab1e38b5a6d21f582a40811581e49b2 (diff) | |
download | fork-ledger-60b178789f7146621e1f88b195eb8b455a761bee.tar.gz fork-ledger-60b178789f7146621e1f88b195eb8b455a761bee.tar.bz2 fork-ledger-60b178789f7146621e1f88b195eb8b455a761bee.zip |
Several changes to autoconf and automake files:
- Always build with Python support, if it's available
- Better rule for building the TAGS file (optional)
- Basic reorganization
- Don't run the RegressionTests if no Python interpretor is found
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am index 0b8fcfbc..b7dee8ea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -141,7 +141,7 @@ if USE_PCH nodist_libledger_la_SOURCES = src/system.hh.gch BUILT_SOURCES = src/system.hh.gch -CLEANFILES += src/system.hh.gch +CLEANFILES += src/system.hh.gch $(srcdir)/src/system.hh.gch: $(srcdir)/src/system.hh $(top_builddir)/acconf.h $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ @@ -154,21 +154,27 @@ endif bin_PROGRAMS = ledger -ledger_CPPFLAGS = $(libledger_la_CPPFLAGS) +ledger_CPPFLAGS = $(libledger_la_CPPFLAGS) ledger_SOURCES = src/main.cc ledger_LDADD = $(LIBOBJS) libamounts.la libledger.la ledger_LDFLAGS = -static -info_TEXINFOS = doc/ledger.texi +info_TEXINFOS = doc/ledger.texi -dist_lisp_LISP = lisp/ledger.el lisp/timeclock.el -ELCFILES = -DISTCLEANFILES = ledger.elc timeclock.elc +dist_lisp_LISP = lisp/ledger.el lisp/timeclock.el +ELCFILES = +DISTCLEANFILES = ledger.elc timeclock.elc +CLEANFILES += TAGS -TAGS: $(libamounts_la_SOURCES) $(libledger_la_SOURCES) \ - $(libpyledger_la_SOURCES) python/pyledger.cc - etags $(libamounts_la_SOURCES) $(libledger_la_SOURCES) \ - $(libpyledger_la_SOURCES) python/pyledger.cc +all_sources = $(libamounts_la_SOURCES) \ + $(libledger_la_SOURCES) \ + $(libpyledger_la_SOURCES) \ + python/pyledger.cc \ + $(pkginclude_HEADERS) + +TAGS: $(all_sources) + @etags $(all_sources) + @echo TAGS rebuilt. ###################################################################### @@ -226,8 +232,12 @@ endif ###################################################################### -TESTS = RegressionTests +TESTS = + +if HAVE_PYTHON +TESTS += RegressionTests XFAIL_TESTS = RegressionTests # jww (2008-08-07): for now +endif if HAVE_CPPUNIT TESTS += UnitTests |