mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
build(uninstall): don't build if installation manifest not found
Due to the way neovim project is set up, running `make uninstall` would previously build neovim in order to determine whether neovim was installed. Instead, check if installation manifest file exists and if not then skip building entirely.
This commit is contained in:
parent
747264320c
commit
6801befcc5
10
Makefile
10
Makefile
@ -131,9 +131,17 @@ functionaltest-lua: | nvim
|
|||||||
FORMAT=formatc formatlua format
|
FORMAT=formatc formatlua format
|
||||||
LINT=lintlua lintsh lintc clang-tidy lintcommit lint
|
LINT=lintlua lintsh lintc clang-tidy lintcommit lint
|
||||||
TEST=functionaltest unittest
|
TEST=functionaltest unittest
|
||||||
generated-sources benchmark uninstall $(FORMAT) $(LINT) $(TEST): | build/.ran-cmake
|
generated-sources benchmark $(FORMAT) $(LINT) $(TEST): | build/.ran-cmake
|
||||||
$(CMAKE_PRG) --build build --target $@
|
$(CMAKE_PRG) --build build --target $@
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
ifneq (,$(wildcard build/install_manifest.txt))
|
||||||
|
$(CMAKE_PRG) --build build --target $@
|
||||||
|
else
|
||||||
|
@echo Install manifest file not found. You need to build and install \
|
||||||
|
neovim to generate the manifest file.
|
||||||
|
endif
|
||||||
|
|
||||||
test: $(TEST)
|
test: $(TEST)
|
||||||
|
|
||||||
iwyu: build/.ran-cmake
|
iwyu: build/.ran-cmake
|
||||||
|
Loading…
Reference in New Issue
Block a user