]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Makefile: support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics
authorJānis Rūcis <parasti@gmail.com>
Fri, 25 Jun 2010 11:04:13 +0000 (14:04 +0300)
committerJānis Rūcis <parasti@gmail.com>
Fri, 25 Jun 2010 11:04:13 +0000 (14:04 +0300)
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))