r17787 - gnucash/trunk/src/optional/python-bindings - Beautify python-bindings/Makefile.am.
Andreas Köhler
andi5 at cvs.gnucash.org
Wed Dec 31 15:06:14 EST 2008
Author: andi5
Date: 2008-12-31 15:06:14 -0500 (Wed, 31 Dec 2008)
New Revision: 17787
Trac: http://svn.gnucash.org/trac/changeset/17787
Modified:
gnucash/trunk/src/optional/python-bindings/Makefile.am
gnucash/trunk/src/optional/python-bindings/tests/Makefile.am
Log:
Beautify python-bindings/Makefile.am.
* Remove gnucash_core.i from _SOURCES, because automake probably does not use it
anyway.
* Put flags into separate lines.
* Add gnucash_core.c to maintainer-clean target and wrap it in
BUILDING_FROM_SVN, so that timestamps in tarballs do not try to regenerate it.
* Add example_scripts/*.py, tests/*.py and *.i to EXTRA_DIST.
Modified: gnucash/trunk/src/optional/python-bindings/Makefile.am
===================================================================
--- gnucash/trunk/src/optional/python-bindings/Makefile.am 2008-12-31 19:13:50 UTC (rev 17786)
+++ gnucash/trunk/src/optional/python-bindings/Makefile.am 2008-12-31 20:06:14 UTC (rev 17787)
@@ -1,30 +1,53 @@
SUBDIRS = . tests
-BUILT_SOURCES = gnucash_core.c
-SWIG_SOURCES = gnucash_core.i
+pkgpython_PYTHON = \
+ __init__.py \
+ function_class.py \
+ gnucash_core.py \
+ gnucash_core_c.py \
+ gnucash_business.py
-pkgpython_PYTHON = __init__.py function_class.py \
-gnucash_core.py gnucash_core_c.py gnucash_business.py
-
pkgpyexec_LTLIBRARIES = _gnucash_core_c.la
-_gnucash_core_c_la_SOURCES = $(BUILT_SOURCES) $(SWIG_SOURCES)
-_gnucash_core_c_la_CPPFLAGS = $(PYTHON_CPPFLAGS) \
- -I$(top_srcdir)/src $(QOF_CFLAGS) \
- $(GLIB_CFLAGS) $(GUILE_INCS) \
- -I$(top_srcdir)/src/engine \
- -I$(top_srcdir)/src/business/business-core
+_gnucash_core_c_la_SOURCES = \
+ gnucash_core.c
+
+_gnucash_core_c_la_CPPFLAGS = \
+ $(PYTHON_CPPFLAGS) \
+ $(QOF_CFLAGS) \
+ $(GLIB_CFLAGS) \
+ $(GUILE_INCS) \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/engine \
+ -I$(top_srcdir)/src/business/business-core
+
# Suppress all warnings for now, but we really only need to -Wno-implicit
AM_CFLAGS = -w
_gnucash_core_c_la_LDFLAGS = -avoid-version -module
-_gnucash_core_c_la_LIBADD = ${QOF_LIBS} ${GUILE_LIBS} ${GLIB_LIBS} \
- ${top_builddir}/src/gnc-module/libgnc-module.la \
- ${top_builddir}/src/engine/libgncmod-engine.la \
- ${top_builddir}/src/business/business-core/libgncmod-business-core.la
-gnucash_core.c : $(SWIG_SOURCES)
+_gnucash_core_c_la_LIBADD = \
+ ${QOF_LIBS} \
+ ${GLIB_LIBS} \
+ ${GUILE_LIBS} \
+ ${top_builddir}/src/gnc-module/libgnc-module.la \
+ ${top_builddir}/src/engine/libgncmod-engine.la \
+ ${top_builddir}/src/business/business-core/libgncmod-business-core.la
+
+if BUILDING_FROM_SVN
+gnucash_core.c: gnucash_core.i
swig $(SWIG_PYTHON_OPT) -Wall -Werror \
-I$(top_srcdir)/src -I$(top_srcdir)/src/engine \
-I$(top_srcdir)/src/business/business-core \
$(QOF_CFLAGS) -o $@ $<
+endif
+
+EXTRA_DIST = \
+ example_scripts/simple_book.py \
+ example_scripts/simple_session.py \
+ example_scripts/simple_test.py \
+ glib.i \
+ gnucash_core.i \
+ timespec.i
+
+MAINTAINERCLEANFILES = gnucash-core.c
Modified: gnucash/trunk/src/optional/python-bindings/tests/Makefile.am
===================================================================
--- gnucash/trunk/src/optional/python-bindings/tests/Makefile.am 2008-12-31 19:13:50 UTC (rev 17786)
+++ gnucash/trunk/src/optional/python-bindings/tests/Makefile.am 2008-12-31 20:06:14 UTC (rev 17787)
@@ -3,3 +3,10 @@
clean-local:
rm -f translog.*
+
+EXTRA_DIST = \
+ runTests.py \
+ test_account.py \
+ test_book.py \
+ test_split.py \
+ test_transaction.py
More information about the gnucash-changes
mailing list