aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-08-27 13:22:17 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-08-28 12:37:29 +0200
commit3085c9d9daab611a2a20a1db44868a2e4c8f759e (patch)
tree020098e49e9d1a9f2840f1d2bec253805e2db92d
parent3a61f05dd2d6cb2ac9bca4795467f459595e58dd (diff)
downloadrneovim-3085c9d9daab611a2a20a1db44868a2e4c8f759e.tar.gz
rneovim-3085c9d9daab611a2a20a1db44868a2e4c8f759e.tar.bz2
rneovim-3085c9d9daab611a2a20a1db44868a2e4c8f759e.zip
revert: "Makefile: use pattern rules for build/.deps (#10366)"
This reverts commit 7f6ff829aa2347eb940d8e70a825ea335d8f15ed. 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.
-rw-r--r--Makefile10
1 files changed, 0 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index c44be8f8c7..58640fd25d 100644
--- a/Makefile
+++ b/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)