]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Makefile refactoring: abstract knot version
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 29 Jun 2017 09:55:29 +0000 (11:55 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 24 Jul 2017 09:25:18 +0000 (11:25 +0200)
Makefile

index ef757509cac8f01b4cf758d5e7cfe4db040c7613..a6b3f2b2db67d35f8ebd47ca81e6dfb107d7036e 100644 (file)
--- 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)