From aacc6351473a2019482067c4443507e70f1b071b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 19 Apr 2011 12:32:37 +0000 Subject: make pkgconf not happen when clean target called svn path=/trunk/libcss/; revision=12204 --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6f37e4f..e0ef4ab 100644 --- a/Makefile +++ b/Makefile @@ -29,12 +29,14 @@ else endif # Parserutils & wapcaplet -ifneq ($(PKGCONFIG),) - CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --cflags) - LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --libs) -else - CFLAGS := $(CFLAGS) -I$(PREFIX)/include - LDFLAGS := $(LDFLAGS) -lparserutils -lwapcaplet +ifneq ($(findstring clean,$(MAKECMDGOALS)),clean) + ifneq ($(PKGCONFIG),) + CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --cflags) + LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --libs) + else + CFLAGS := $(CFLAGS) -I$(PREFIX)/include + LDFLAGS := $(LDFLAGS) -lparserutils -lwapcaplet + endif endif include build/makefiles/Makefile.top -- cgit v1.2.3