summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-21 10:37:44 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-04-21 10:37:44 (GMT)
commitd954d8d0356f426affc67441556f16393be3c2f5 (patch)
treee1880f0ef24ea38f1b669cfa6daf452ba858051d
parent121b51dcc1df45725229aa7eed27822c0f455748 (diff)
downloadlibhubbub-d954d8d0356f426affc67441556f16393be3c2f5.tar.gz
libhubbub-d954d8d0356f426affc67441556f16393be3c2f5.tar.bz2
Only search for parserutils if we're not cleaning the build.
svn path=/trunk/hubbub/; revision=7146
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e1b1431..6410bc6 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,14 @@ else
endif
# Parserutils
-ifneq ($(PKGCONFIG),)
- CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils-0 --cflags)
- LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils-0 --libs)
-else
- CFLAGS := $(CFLAGS) -I$(PREFIX)/include/parserutils0
- LDFLAGS := $(LDFLAGS) -lparserutils0
+ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
+ ifneq ($(PKGCONFIG),)
+ CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils-0 --cflags)
+ LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils-0 --libs)
+ else
+ CFLAGS := $(CFLAGS) -I$(PREFIX)/include/parserutils0
+ LDFLAGS := $(LDFLAGS) -lparserutils0
+ endif
endif
include build/makefiles/Makefile.top