Permalink
Browse files

make missing dependencies non fatal at make clean

  • Loading branch information...
1 parent eb64867 commit 75366af9fddd02f424c4e1b84d85911baf35848f @knopwob knopwob committed Mar 20, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 config.mk
View
@@ -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

0 comments on commit 75366af

Please sign in to comment.