From 4f3eee9d88cfe46e04793bef3421c84eea28a61c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 7 Sep 2008 16:58:00 +0000 Subject: Only include the .d files for testcases if we're building the test target. svn path=/trunk/hubbub/; revision=5278 --- test/Makefile | 4 ++-- 1 file 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 -- cgit v1.2.3