diff --git a/Makefile b/Makefile index 0b2a693e36..b0b0a800f0 100644 --- a/Makefile +++ b/Makefile @@ -131,9 +131,17 @@ functionaltest-lua: | nvim FORMAT=formatc formatlua format LINT=lintlua lintsh lintc clang-tidy lintcommit lint 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 $@ +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) iwyu: build/.ran-cmake