summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2015-04-25 20:57:34 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2015-04-30 15:13:26 -0700
commite02e66ce0ed9381837f17065e3a70e53d673be22 (patch)
tree9d468d2c59007416b9bf6b7ecfea218bb79074ce /Makefile
parentc6414ea7cab5917c904729c87f786e0a5909475c (diff)
downloadcaffeonacl-e02e66ce0ed9381837f17065e3a70e53d673be22.tar.gz
caffeonacl-e02e66ce0ed9381837f17065e3a70e53d673be22.tar.bz2
caffeonacl-e02e66ce0ed9381837f17065e3a70e53d673be22.zip
Makefile bugfix: OTHER_BUILD_DIR name set incorrectly when empty due to
lazy variable expansion when using the `?=` operator -- change them to explicit empty string checks with simple assignment operator `:=`.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index db0f531e..42df20d2 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,12 @@ CONFIG_FILE := Makefile.config
include $(CONFIG_FILE)
BUILD_DIR_LINK := $(BUILD_DIR)
-RELEASE_BUILD_DIR ?= .$(BUILD_DIR)_release
-DEBUG_BUILD_DIR ?= .$(BUILD_DIR)_debug
+ifeq ($(RELEASE_BUILD_DIR),)
+ RELEASE_BUILD_DIR := .$(BUILD_DIR)_release
+endif
+ifeq ($(DEBUG_BUILD_DIR),)
+ DEBUG_BUILD_DIR := .$(BUILD_DIR)_debug
+endif
DEBUG ?= 0
ifeq ($(DEBUG), 1)