[gjs/wip/xulrunner-2-rebase3] Makefile-test.am: Ensure we build dependencies for gdb-check too



commit 29de29e609a13e70d790f0a95b79b34af81d9e47
Author: Colin Walters <walters verbum org>
Date:   Fri Oct 29 10:11:47 2010 -0400

    Makefile-test.am: Ensure we build dependencies for gdb-check too
    
    We need the .typelibs too.

 Makefile-test.am |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/Makefile-test.am b/Makefile-test.am
index 8933c83..df3bdd2 100644
--- a/Makefile-test.am
+++ b/Makefile-test.am
@@ -115,18 +115,20 @@ TESTS_ENVIRONMENT =							\
 	LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):$(FIREFOX_JS_LIBDIR)"	\
 	G_FILENAME_ENCODING=latin1	# ensure filenames are not utf8
 
-test:	$(gjsnative_LTLIBRARIES) ${TEST_PROGS} Regress-1.0.typelib GIMarshallingTests-1.0.typelib
+tests_dependencies = $(gjsnative_LTLIBRARIES) ${TEST_PROGS} Regress-1.0.typelib GIMarshallingTests-1.0.typelib
+
+test: $(tests_dependencies)
 	@test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS} ${TEST_PROGS_OPTIONS}
 
 check:	test
 
-gdb-check gdb-test: $(gjsnative_LTLIBRARIES) ${TEST_PROGS}
+gdb-check gdb-test: $(tests_dependencies)
 	failed=; for prog in ${TEST_PROGS}; do \
 	  ${TESTS_ENVIRONMENT} GJS_TEST_TIMEOUT=0 libtool --mode=execute gdb -x \
 	      $(top_srcdir)/test/unittest.gdb --args $$prog; \
 	  done
 
-valgrind-check valgrind-test: $(gjsnative_LTLIBRARIES) ${TEST_PROGS}
+valgrind-check valgrind-test: $(tests_dependencies)
 	@test -z "${TEST_PROGS}" || { \
 	  failed=; for prog in ${TEST_PROGS}; do \
 	    ${TESTS_ENVIRONMENT} G_SLICE=always-malloc	\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]