diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-09-07 16:58:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-09-07 16:58:00 +0000 |
commit | 4f3eee9d88cfe46e04793bef3421c84eea28a61c (patch) | |
tree | eee4b310c2c452bbea75dfbeda61b771ffb82917 /test | |
parent | 303838617cba2f914b80937d73e38e972c4bb319 (diff) | |
download | libhubbub-4f3eee9d88cfe46e04793bef3421c84eea28a61c.tar.gz libhubbub-4f3eee9d88cfe46e04793bef3421c84eea28a61c.tar.bz2 |
Only include the .d files for testcases if we're building the test target.
svn path=/trunk/hubbub/; revision=5278
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index b46d639..caf397d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -31,7 +31,7 @@ sp := $(sp).x 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 @@ endef $(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 |