build: Makefile: fix distclean [ci skip] (#10336)

Do not run CMake in build before deleting it unnecessarily:

    % make distclean
    test -d build && ninja -C build clean || true
    ninja: Entering directory `build'
    [0/1] Re-running CMake...
This commit is contained in:
Daniel Hahler 2019-06-25 19:51:28 +02:00 committed by GitHub
parent 788bcbba24
commit 10c983fabe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -142,8 +142,9 @@ clean:
$(MAKE) -C src/nvim/testdir clean
$(MAKE) -C runtime/doc clean
distclean: clean
distclean:
rm -rf $(DEPS_BUILD_DIR) build
$(MAKE) clean
install: | nvim
+$(BUILD_CMD) -C build install