From 75366af9fddd02f424c4e1b84d85911baf35848f Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Wed, 20 Mar 2013 09:33:41 +0000 Subject: [PATCH] make missing dependencies non fatal at make clean --- config.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 6046a62..bae1db2 100644 --- a/config.mk +++ b/config.mk @@ -37,6 +37,9 @@ INCS := $(shell ${PKG_CONFIG} --cflags ${pkg_config_packs}) CFLAGS += ${INCS} LDFLAGS += -lm -L${X11LIB} -lXss ${XINERAMALIBS} $(shell ${PKG_CONFIG} --libs ${pkg_config_packs}) +# only make this an fatal error when where not cleaning +ifneq (clean, $(MAKECMDGOALS)) ifeq (${INCS}, ${EMPTY}) - $(error "pkg-config failed, see errors above") +$(error "pkg-config failed, see errors above") +endif endif