diff options
author | Jeff Donahue <jeff.donahue@gmail.com> | 2015-04-25 20:57:34 -0700 |
---|---|---|
committer | Jeff Donahue <jeff.donahue@gmail.com> | 2015-04-30 15:13:26 -0700 |
commit | e02e66ce0ed9381837f17065e3a70e53d673be22 (patch) | |
tree | 9d468d2c59007416b9bf6b7ecfea218bb79074ce /Makefile | |
parent | c6414ea7cab5917c904729c87f786e0a5909475c (diff) | |
download | caffeonacl-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-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |