mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 06:20:53 +00:00
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).
This commit is contained in:
4
Makefile
4
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
|
||||
|
||||
Reference in New Issue
Block a user