glib.mk: Rework win32 test support
authorRyan Lortie <desrt@desrt.ca>
Sat, 1 Jun 2013 14:07:33 +0000 (10:07 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sat, 1 Jun 2013 14:08:24 +0000 (10:08 -0400)
Newer versions of automake (~1.13.1) seem to generate some new rules for
testcases that get tripped up on our use of $(addsuffix) and $(strip) so
take those out of the definition of TESTS on win32.

glib.mk

diff --git a/glib.mk b/glib.mk
index e38d066..6cea4a4 100644 (file)
--- a/glib.mk
+++ b/glib.mk
@@ -48,10 +48,6 @@ else
 test-nonrecursive:
 endif
 
-if OS_WIN32
-TESTS += $(addsuffix .exe, $(TEST_PROGS))
-endif
-
 # test-report: run tests in subdirs and generate report
 # perf-report: run tests in subdirs with -m perf and generate report
 # full-report: like test-report: with -m perf and -m slow
@@ -167,6 +163,11 @@ check-local: test-nonrecursive
 TEST_PROGS += $(strip $(test_programs) $(test_scripts) $(uninstalled_test_programs) $(uninstalled_test_scripts) \
                       $(dist_test_scripts) $(dist_uninstalled_test_scripts))
 
+if OS_WIN32
+TESTS += $(test_programs) $(test_scripts) $(uninstalled_test_programs) $(uninstalled_test_scripts) \
+         $(dist_test_scripts) $(dist_uninstalled_test_scripts)
+endif
+
 # Note: build even the installed-only targets during 'make check' to ensure that they still work.
 # We need to do a bit of trickery here and manage disting via EXTRA_DIST instead of using dist_ prefixes to
 # prevent automake from mistreating gmake functions like $(wildcard ...) and $(addprefix ...) as if they were