diff --git a/glib.mk b/glib.mk index e38d0662a..6cea4a44f 100644 --- 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