aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-04 17:13:04 +0200
committerGitHub <noreply@github.com>2019-08-04 17:13:04 +0200
commit4c35e6fe6734050b2e633aba330b0e389835fbc4 (patch)
tree74b70485c8b016d509193db38d8188627323e8f9
parent05712d4b20fbc260134b9e5b6f816cfee90c1ab2 (diff)
downloadrneovim-4c35e6fe6734050b2e633aba330b0e389835fbc4.tar.gz
rneovim-4c35e6fe6734050b2e633aba330b0e389835fbc4.tar.bz2
rneovim-4c35e6fe6734050b2e633aba330b0e389835fbc4.zip
Makefile: only use pattern rules with BUILD_TYPE=Ninja (#10687)
While not doing any harm with "Unix Makefiles", they do not work there as-is. Therefore just do not use them then. Followup to #10366 (7f6ff829a).
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 40d374b75f..e2cf4a3b29 100644
--- a/Makefile
+++ b/Makefile
@@ -184,10 +184,14 @@ appimage-%:
lint: check-single-includes clint lualint pylint
+# Generic pattern rules, allowing for `make build/bin/nvim` etc.
+# Does not work with "Unix Makefiles".
+ifeq ($(BUILD_TYPE),Ninja)
build/%:
$(BUILD_CMD) -C build $(patsubst build/%,%,$@)
$(DEPS_BUILD_DIR)/%:
$(BUILD_CMD) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@)
+endif
.PHONY: test lualint pylint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage checkprefix