mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
revert: "Makefile: use pattern rules for build/.deps (#10366)"
This reverts commit7f6ff829aa
. The given reasoning and usecase is unsatisfactory. While it is true that it allows to run `make build/bin/nvim`, it can easily be recreated with `ninja -C build bin/nvim` which does the exact same thing. This minor convenience is not worth adding the extra code given how rare this usecase should be. (cherry picked from commit3085c9d9da
)
This commit is contained in:
committed by
github-actions[bot]
parent
2c95d48083
commit
50a021e653
10
Makefile
10
Makefile
@ -155,14 +155,4 @@ appimage:
|
||||
appimage-%:
|
||||
bash scripts/genappimage.sh $*
|
||||
|
||||
# Generic pattern rules, allowing for `make build/bin/nvim` etc.
|
||||
# Does not work with "Unix Makefiles".
|
||||
ifeq ($(CMAKE_GENERATOR),Ninja)
|
||||
build/%: phony_force
|
||||
$(BUILD_TOOL) -C build $(patsubst build/%,%,$@)
|
||||
|
||||
$(DEPS_BUILD_DIR)/%: phony_force
|
||||
$(BUILD_TOOL) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@)
|
||||
endif
|
||||
|
||||
.PHONY: test clean distclean nvim libnvim cmake deps install appimage checkprefix benchmark $(FORMAT) $(LINT) $(TEST)
|
||||
|
Reference in New Issue
Block a user