build: Don't use make functions for defining TESTS
authorNuno Araujo <nuno.araujo@russo79.com>
Mon, 21 Jan 2013 12:00:41 +0000 (13:00 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Thu, 24 Jan 2013 00:06:33 +0000 (00:06 +0000)
Usage of 'make' functions in the definition of TESTS special variable
can lead to the creation of a corrupt Makefile.in, thus a corrupt Makefile.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=692122

NEWS
tests/telepathy/Makefile.am

diff --git a/NEWS b/NEWS
index 5811dbb..7193d6b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,7 @@ Bugs fixed:
 • Bug 686695 — support nickname in add_persona_from_details
 • Bug 691382 — Restore tests disabled by bug #668415 (which has been fixed)
 • Bug 691923 — Don't rebuild docs on every "make" run
+• Bug 692122 — build: Don't use make functions for defining TESTS
 
 API changes:
 • Add Backend.enable_persona_store and disable_persona_store.
index 5058bd4..1ee7beb 100644 (file)
@@ -44,15 +44,6 @@ AM_VALAFLAGS = \
        -g \
        $(NULL)
 
-noinst_PROGRAMS = \
-       fake-tp-backend \
-       persona-store-capabilities \
-       individual-retrieval \
-       individual-properties \
-       individual-zeitgeist \
-       init \
-       $(NULL)
-
 SESSION_CONF = $(top_builddir)/tests/lib/telepathy/contactlist/session.conf
 backend_store_key_file=$(srcdir)/data/backend-store-telepathy-only.ini
 TESTS_ENVIRONMENT = \
@@ -63,7 +54,18 @@ TESTS_ENVIRONMENT = \
        $(RUN_WITH_PRIVATE_BUS) \
        --config-file=$(SESSION_CONF) \
        --
-TESTS = $(filter-out fake-tp-backend individual-zeitgeist,$(noinst_PROGRAMS))
+TESTS = \
+       persona-store-capabilities \
+       individual-retrieval \
+       individual-properties \
+       init \
+       $(NULL)
+
+noinst_PROGRAMS = \
+       fake-tp-backend \
+       individual-zeitgeist \
+       $(TESTS) \
+       $(NULL)
 
 fake_tp_backend_SOURCES = \
        fake-tp-backend.vala \