aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-06-23 15:25:30 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-06-23 15:25:29 +0200
commit9ce34050e549baf2c85e23fc3370f3ffebc773ad (patch)
tree1402589dec21cf3dd8e73abd01de605443ab1532
parentde2e51439ec96f0ec4063f5b516258f1c72e69cd (diff)
downloadrneovim-9ce34050e549baf2c85e23fc3370f3ffebc773ad.tar.gz
rneovim-9ce34050e549baf2c85e23fc3370f3ffebc773ad.tar.bz2
rneovim-9ce34050e549baf2c85e23fc3370f3ffebc773ad.zip
Makefile: fix trailing space in BUILD_CMD #10312
Only append flag for verbosity with ninja if non-empty. Fixes the trailing space with `ninja -C .deps`.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4142cacc51..79dbc27504 100644
--- a/Makefile
+++ b/Makefile
@@ -41,15 +41,15 @@ ifeq (,$(BUILD_TOOL))
endif
endif
+BUILD_CMD = $(BUILD_TOOL)
+
ifneq ($(VERBOSE),)
# Only need to handle Ninja here. Make will inherit the VERBOSE variable.
ifeq ($(BUILD_TYPE),Ninja)
- VERBOSE_FLAG := -v
+ BUILD_CMD += -v
endif
endif
-BUILD_CMD = $(BUILD_TOOL) $(VERBOSE_FLAG)
-
DEPS_CMAKE_FLAGS ?=
# Back-compat: USE_BUNDLED_DEPS was the old name.
USE_BUNDLED ?= $(USE_BUNDLED_DEPS)