fix: update makefile indents to not always run which (#10126)

This commit is contained in:
Joshua Powers 2021-11-18 15:10:07 -07:00 committed by GitHub
parent 8710d2353e
commit a439841015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

View File

@ -148,26 +148,26 @@ lint-install:
.PHONY: lint .PHONY: lint
lint: lint:
ifeq (, $(shell which golangci-lint)) ifeq (, $(shell which golangci-lint))
$(info golangci-lint can't be found, please run: make lint-install) $(info golangci-lint can't be found, please run: make lint-install)
exit 1 exit 1
endif endif
golangci-lint run golangci-lint run
ifeq (, $(shell which markdownlint-cli)) ifeq (, $(shell which markdownlint))
$(info markdownlint-cli can't be found, please run: make lint-install) $(info markdownlint can't be found, please run: make lint-install)
exit 1 exit 1
endif endif
markdownlint-cli markdownlint-cli
.PHONY: lint-branch .PHONY: lint-branch
lint-branch: lint-branch:
ifeq (, $(shell which golangci-lint)) ifeq (, $(shell which golangci-lint))
$(info golangci-lint can't be found, please run: make lint-install) $(info golangci-lint can't be found, please run: make lint-install)
exit 1 exit 1
endif endif
golangci-lint run --new-from-rev master golangci-lint run --new-from-rev master