Run version check if config.mk changed

This commit is contained in:
Sebastian Ramacher 2014-01-01 16:50:19 +01:00
parent 3c83a50cff
commit 6cd8f2d3f6

View file

@ -43,7 +43,7 @@ DOBJECTS = $(patsubst %.c, %.do, $(SOURCE))
all: options ${PROJECT} po build-manpages
# pkg-config based version checks
.version-checks/%:
.version-checks/%: config.mk
$(QUIET)test $($(*)_VERSION_CHECK) -eq 0 || \
pkg-config --atleast-version $($(*)_MIN_VERSION) $($(*)_PKG_CONFIG_NAME) || ( \
echo "The minium required version of $(*) is $($(*)_MIN_VERSION)" && \