From 7f6ff829aa2347eb940d8e70a825ea335d8f15ed Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 30 Jul 2019 13:53:33 +0200 Subject: [PATCH] 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. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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