From: Jānis Rūcis Date: Fri, 25 Jun 2010 11:04:13 +0000 (+0300) Subject: Makefile: support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics X-Git-Tag: xonotic-v0.5.0~254 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e2bde4a5291805129a658bf697a2be2c2b01d40c;p=xonotic%2Fnetradiant.git Makefile: support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics --- diff --git a/Makefile b/Makefile index 5cdeee69..98dcb2f9 100644 --- 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))