mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07: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:
parent
05712d4b20
commit
4c35e6fe67
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
|
||||
|
Loading…
Reference in New Issue
Block a user