diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-09-07 16:43:37 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-09-07 16:43:37 +0000 |
commit | fb3d1d20eb1ed755a9335899030e6c09459e0041 (patch) | |
tree | e4abdb9e772b2bf0a84584c3fc4b84b6da1b7336 /test | |
parent | 42da88597339feda94e4efb0f0dc79e008df5ac0 (diff) | |
download | libhubbub-fb3d1d20eb1ed755a9335899030e6c09459e0041.tar.gz libhubbub-fb3d1d20eb1ed755a9335899030e6c09459e0041.tar.bz2 |
Only look for json if we're building the test target
svn path=/trunk/hubbub/; revision=5276
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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 |