r5278 jmb - /trunk/hubbub/test/Makefile

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 7 17:58:00 BST 2008


Author: jmb
Date: Sun Sep  7 11:58:00 2008
New Revision: 5278

URL: http://source.netsurf-browser.org?rev=5278&view=rev
Log:
Only include the .d files for testcases if we're building the test target.

Modified:
    trunk/hubbub/test/Makefile

Modified: trunk/hubbub/test/Makefile
URL: http://source.netsurf-browser.org/trunk/hubbub/test/Makefile?rev=5278&r1=5277&r2=5278&view=diff
==============================================================================
--- trunk/hubbub/test/Makefile (original)
+++ trunk/hubbub/test/Makefile Sun Sep  7 11:58:00 2008
@@ -31,7 +31,7 @@
 dirstack_$(sp) := $(d)
 d              := $(DIR)
 
-ifeq ($(findstring test,$(MAKECMDGOALS)),test)
+ifeq ($(MAKECMDGOALS),test)
 # Extend toolchain settings
 # We require the presence of libjson -- http://oss.metaparadigm.com/json-c/
 CFLAGS := $(CFLAGS) -I$(TOP)/src/ -I$(d) \
@@ -98,7 +98,7 @@
 $(eval $(foreach TEST,$(addprefix $(d), $(TESTS_$(d))), \
 	$(call dep_test,$(addsuffix .c, $(TEST)),$(addsuffix .d, $(TEST)),$(TEST))))
 
-ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
+ifeq ($(MAKECMDGOALS),test)
 -include $(sort $(DEP_$(d)))
 endif
 




More information about the netsurf-commits mailing list