build: lint: fix exit with optional pylint

Ref: https://github.com/neovim/neovim/pull/10714#issuecomment-518932355
This commit is contained in:
Daniel Hahler 2019-08-07 12:27:24 +02:00
parent d75fc87dec
commit 95e1ce24e8

View File

@ -185,7 +185,7 @@ appimage-%:
lint: check-single-includes clint lualint lint: check-single-includes clint lualint
@# Run pylint only if flake8 is installed. @# Run pylint only if flake8 is installed.
@command -v flake8 \ @command -v flake8 \
&& { $(MAKE) pylint; exit $?; } \ && { $(MAKE) pylint; exit $$?; } \
|| echo "SKIP: pylint (flake8 not found)" || echo "SKIP: pylint (flake8 not found)"
# Generic pattern rules, allowing for `make build/bin/nvim` etc. # Generic pattern rules, allowing for `make build/bin/nvim` etc.