make missing dependencies non fatal at make clean

This commit is contained in:
Sascha Kruse 2013-03-20 09:33:41 +00:00
parent eb64867d43
commit 75366af9fd

View File

@ -37,6 +37,9 @@ INCS := $(shell ${PKG_CONFIG} --cflags ${pkg_config_packs})
CFLAGS += ${INCS} CFLAGS += ${INCS}
LDFLAGS += -lm -L${X11LIB} -lXss ${XINERAMALIBS} $(shell ${PKG_CONFIG} --libs ${pkg_config_packs}) 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}) ifeq (${INCS}, ${EMPTY})
$(error "pkg-config failed, see errors above") $(error "pkg-config failed, see errors above")
endif
endif endif