From fb3d1d20eb1ed755a9335899030e6c09459e0041 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 7 Sep 2008 16:43:37 +0000 Subject: Only look for json if we're building the test target svn path=/trunk/hubbub/; revision=5276 --- test/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Makefile b/test/Makefile index c74854d..b46d639 100644 --- a/test/Makefile +++ b/test/Makefile @@ -31,12 +31,14 @@ sp := $(sp).x dirstack_$(sp) := $(d) d := $(DIR) +ifeq ($(findstring test,$(MAKECMDGOALS)),test) # Extend toolchain settings # We require the presence of libjson -- http://oss.metaparadigm.com/json-c/ CFLAGS := $(CFLAGS) -I$(TOP)/src/ -I$(d) \ $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags json) \ -Wno-unused-parameter LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs json) +endif ifdef PROFILE CFLAGS := $(CFLAGS) -pg -fno-omit-frame-pointer -- cgit v1.2.3