]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - Makefile
Makefile: support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics
[xonotic/netradiant.git] / Makefile
index 5cdeee6947a9c0aef605e7baa4bd568f56421ca7..98dcb2f91b7b25fa2be7742c02d19a999e91ee2a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -79,8 +79,14 @@ LIBS_ZLIB          ?= -lz
 DEPEND_ON_MAKEFILE ?= yes
 DOWNLOAD_GAMEPACKS ?= yes
 # set to no to disable gamepack, set to all to even download undistributable gamepacks
+
+# Support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics
+ifneq ($(CHECK_DEPENDENCIES),)
+DEPENDENCIES_CHECK = $(patsubst yes,quiet,$(patsubst no,off,$(CHECK_DEPENDENCIES)))
+else
 DEPENDENCIES_CHECK ?= quiet
 # or: off, verbose
+endif
 
 # these are used on Win32 only
 GTKDIR             ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --variable=prefix $(STDERR_TO_DEVNULL))