r17797 - gnucash/trunk/src - Use = instead of := for GNC_TEST_DEPS and TESTS_ENVIRONMENT.
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Jan 5 04:51:34 EST 2009
Author: andi5
Date: 2009-01-05 04:51:33 -0500 (Mon, 05 Jan 2009)
New Revision: 17797
Trac: http://svn.gnucash.org/trac/changeset/17797
Modified:
gnucash/trunk/src/app-utils/test/Makefile.am
gnucash/trunk/src/backend/dbi/test/Makefile.am
gnucash/trunk/src/backend/file/test/Makefile.am
gnucash/trunk/src/backend/postgres/test/Makefile.am
gnucash/trunk/src/backend/sql/test/Makefile.am
gnucash/trunk/src/bin/test/Makefile.am
gnucash/trunk/src/business/business-core/test/Makefile.am
gnucash/trunk/src/engine/test/Makefile.am
gnucash/trunk/src/gnc-module/test/Makefile.am
gnucash/trunk/src/gnome-utils/test/Makefile.am
gnucash/trunk/src/import-export/qif-io-core/test/Makefile.am
gnucash/trunk/src/import-export/qif/test/Makefile.am
gnucash/trunk/src/import-export/test/Makefile.am
gnucash/trunk/src/report/locale-specific/us/test/Makefile.am
gnucash/trunk/src/report/report-gnome/test/Makefile.am
gnucash/trunk/src/report/report-system/test/Makefile.am
gnucash/trunk/src/report/standard-reports/test/Makefile.am
gnucash/trunk/src/report/stylesheets/test/Makefile.am
gnucash/trunk/src/report/utility-reports/test/Makefile.am
gnucash/trunk/src/tax/us/test/Makefile.am
Log:
Use = instead of := for GNC_TEST_DEPS and TESTS_ENVIRONMENT.
Both variables are only evaluated once away. Even worse, when used as
simply-expanded variables, the gnc-test-env script is called multiple times,
because of make re-reading the Makefile when called by make in the check-am
target. Those variable definitions are not portable and thus automake spit
warnings.
Modified: gnucash/trunk/src/app-utils/test/Makefile.am
===================================================================
--- gnucash/trunk/src/app-utils/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/app-utils/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -14,7 +14,7 @@
${top_builddir}/src/core-utils/gnc-gconf-utils.c \
test-print-parse-amount.c
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/calculation \
--gnc-module-dir ${top_builddir}/src/app-utils \
@@ -30,7 +30,7 @@
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
LDADD = \
Modified: gnucash/trunk/src/backend/dbi/test/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/dbi/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/backend/dbi/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -3,7 +3,7 @@
TESTS = \
test-load-backend
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/lib/libqof/qof \
@@ -12,7 +12,7 @@
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/gda
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/backend/file/test/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/file/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/backend/file/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -180,7 +180,7 @@
test-xml-transaction \
test-xml2-is-file
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/lib/libqof/qof \
@@ -189,7 +189,7 @@
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/file
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
GNC_TEST_FILES=${srcdir}/test-files/xml2 \
SRCDIR=${srcdir} \
Modified: gnucash/trunk/src/backend/postgres/test/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/postgres/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/backend/postgres/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -3,14 +3,14 @@
test-escape \
run-tests.sh
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_srcdir}/src/engine \
--gnc-module-dir ${top_builddir}/src/backend/xml \
--gnc-module-dir ${top_builddir}/src/backend/postgres
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
TEST_DB_SOCKET_DIR=`pwd`/gnc_test_db_sock \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/backend/sql/test/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/sql/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/backend/sql/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -17,7 +17,7 @@
TESTS = \
test-column-types
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/lib/libqof/qof \
@@ -26,7 +26,7 @@
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/sql
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/bin/test/Makefile.am
===================================================================
--- gnucash/trunk/src/bin/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/bin/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -1,7 +1,7 @@
TESTS = test-version
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
PATH="..:${PATH}"
EXTRA_DIST = test-version
Modified: gnucash/trunk/src/business/business-core/test/Makefile.am
===================================================================
--- gnucash/trunk/src/business/business-core/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/business/business-core/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -26,7 +26,7 @@
test-job \
test-vendor
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/business/business-core \
--guile-load-dir ${top_builddir}/src/gnc-module \
@@ -38,7 +38,7 @@
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/business/business-core
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \
Modified: gnucash/trunk/src/engine/test/Makefile.am
===================================================================
--- gnucash/trunk/src/engine/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/engine/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -46,7 +46,7 @@
test-scm-query \
test-book-merge
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/gnc-module \
--guile-load-dir ${top_builddir}/src/engine \
@@ -55,7 +55,7 @@
--library-dir ${top_builddir}/src/gnc-module \
--library-dir ${top_builddir}/src/engine
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/gnc-module/test/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/gnc-module/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -22,7 +22,7 @@
test-scm-dynload \
test-scm-init
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/gnc-module/test/mod-foo \
--gnc-module-dir ${top_builddir}/src/gnc-module/test/mod-bar \
@@ -38,7 +38,7 @@
--library-dir ${top_builddir}/src/gnc-module/test/mod-bar \
--library-dir ${top_builddir}/src/gnc-module/test/mod-baz
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \
Modified: gnucash/trunk/src/gnome-utils/test/Makefile.am
===================================================================
--- gnucash/trunk/src/gnome-utils/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/gnome-utils/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -8,7 +8,7 @@
##lib_LTLIBRARIES = libgncgnome.la
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/gnome-utils \
--guile-load-dir ${top_builddir}/src/gnc-module \
@@ -22,7 +22,7 @@
--library-dir ${top_builddir}/src/app-utils \
--library-dir ${top_builddir}/src/gnome-utils
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \
Modified: gnucash/trunk/src/import-export/qif/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/qif/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/import-export/qif/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -22,7 +22,7 @@
test-link \
test-qif
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/core-utils \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/engine \
@@ -41,7 +41,7 @@
--guile-load-dir ${top_srcdir}/src/import-export \
--guile-load-dir ${top_srcdir}/src/import-export/qif
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
GNC_TEST_FILES=${srcdir}/test-files \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/import-export/qif-io-core/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/qif-io-core/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/import-export/qif-io-core/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -5,7 +5,7 @@
TESTS=test-load-module test-parser test-reader test-file-formats \
test-import-phase-1
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/app-utils \
@@ -20,7 +20,7 @@
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_srcdir}/src/gnome
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/import-export/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/import-export/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -21,7 +21,7 @@
test-link \
test-import-parse
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/import-export \
--guile-load-dir ${top_builddir}/src/engine \
@@ -35,7 +35,7 @@
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_builddir}/src/import-export
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \
Modified: gnucash/trunk/src/report/locale-specific/us/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/locale-specific/us/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/report/locale-specific/us/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -1,6 +1,6 @@
TESTS = test-load-module test-link-module
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/tax/us \
--gnc-module-dir ${top_builddir}/src/report/report-system \
@@ -15,7 +15,7 @@
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module
Modified: gnucash/trunk/src/report/report-gnome/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/report-gnome/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/report/report-gnome/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -2,7 +2,7 @@
test-link-module \
test-load-module
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/app-utils \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
@@ -18,7 +18,7 @@
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_builddir}/src/report/report-system
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
LDADD = ../libgncmod-report-gnome.la
Modified: gnucash/trunk/src/report/report-system/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/report-system/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/report/report-system/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -2,7 +2,7 @@
test-link-module \
test-load-module
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--guile-load-dir ${top_builddir}/src/gnc-module \
@@ -14,7 +14,7 @@
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
Modified: gnucash/trunk/src/report/standard-reports/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/standard-reports/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/report/standard-reports/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -1,6 +1,6 @@
TESTS=test-load-module
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/standard-reports \
@@ -13,7 +13,7 @@
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module
Modified: gnucash/trunk/src/report/stylesheets/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/stylesheets/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/report/stylesheets/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -1,6 +1,6 @@
TESTS=test-load-module
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/stylesheets \
@@ -17,7 +17,7 @@
--library-dir ${top_builddir}/src/report/report-system \
--library-dir ${top_builddir}/src/report/report-gnome
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module
Modified: gnucash/trunk/src/report/utility-reports/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/utility-reports/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/report/utility-reports/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -1,6 +1,6 @@
TESTS = test-load-module
-GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
+GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/utility-reports \
@@ -13,7 +13,7 @@
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module
Modified: gnucash/trunk/src/tax/us/test/Makefile.am
===================================================================
--- gnucash/trunk/src/tax/us/test/Makefile.am 2009-01-04 03:14:46 UTC (rev 17796)
+++ gnucash/trunk/src/tax/us/test/Makefile.am 2009-01-05 09:51:33 UTC (rev 17797)
@@ -1,14 +1,14 @@
TESTS = test-link-module test-load-module
# Some of these dirs may not be needed anymore.
-GNC_TEST_DEPS := \
+GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/tax/us \
--guile-load-dir ${top_builddir}/src/gnc-module \
--guile-load-dir ${top_builddir}/src/tax/us \
--library-dir ${top_builddir}/src/core-utils \
--library-dir ${top_builddir}/src/gnc-module
-TESTS_ENVIRONMENT := \
+TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module
More information about the gnucash-changes
mailing list