make missing dependencies non fatal at make clean
This commit is contained in:
parent
eb64867d43
commit
75366af9fd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user