From 807cfa0b822a71ed493b57e7db548c3d7a030cf7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 29 Jun 2017 11:55:29 +0200 Subject: [PATCH] Makefile refactoring: abstract knot version --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ef757509c..a6b3f2b2d 100644 --- a/Makefile +++ b/Makefile @@ -16,9 +16,10 @@ BUILD_CFLAGS += --coverage endif # Dependencies -$(eval $(call find_lib,libknot,2.3.1,yes)) -$(eval $(call find_lib,libdnssec,2.3.1,yes)) -$(eval $(call find_lib,libzscanner,2.3.1,yes)) +KNOT_MINVER := 2.3.1 +$(eval $(call find_lib,libknot,$(KNOT_MINVER),yes)) +$(eval $(call find_lib,libdnssec,$(KNOT_MINVER),yes)) +$(eval $(call find_lib,libzscanner,$(KNOT_MINVER),yes)) $(eval $(call find_lib,lmdb)) $(eval $(call find_lib,libuv,1.0,yes)) $(eval $(call find_lib,nettle,,yes)) @@ -127,13 +128,13 @@ info: # Verify required dependencies are met, as listed above ifeq ($(HAS_libknot),no) - $(error libknot >= 2.3.1 required) + $(error libknot >= $(KNOT_MINVER) required) endif ifeq ($(HAS_libzscanner),no) - $(error libzscanner >= 2.3.1 required) + $(error libzscanner >= $(KNOT_MINVER) required) endif ifeq ($(HAS_libdnssec),no) - $(error libdnssec >= 2.3.1 required) + $(error libdnssec >= $(KNOT_MINVER) required) endif ifeq ($(HAS_lua),no) $(error luajit required) -- 2.47.2