aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-30 13:53:33 +0200
committerGitHub <noreply@github.com>2019-07-30 13:53:33 +0200
commit7f6ff829aa2347eb940d8e70a825ea335d8f15ed (patch)
tree25914800df2452e61bbc7da750e2535a447ec825
parentbe6bf75d79b2dee2b27461a5d95e88c30088832a (diff)
downloadrneovim-7f6ff829aa2347eb940d8e70a825ea335d8f15ed.tar.gz
rneovim-7f6ff829aa2347eb940d8e70a825ea335d8f15ed.tar.bz2
rneovim-7f6ff829aa2347eb940d8e70a825ea335d8f15ed.zip
Makefile: use pattern rules for build/.deps [ci skip] (#10366)
This allows for `make build/bin/nvim`, `make build/src/nvim/auto/funcs.generated.h` etc.
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9fe458cf9d..40d374b75f 100644
--- a/Makefile
+++ b/Makefile
@@ -184,4 +184,10 @@ appimage-%:
lint: check-single-includes clint lualint pylint
+build/%:
+ $(BUILD_CMD) -C build $(patsubst build/%,%,$@)
+
+$(DEPS_BUILD_DIR)/%:
+ $(BUILD_CMD) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@)
+
.PHONY: test lualint pylint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage checkprefix