From e13c99ed82254151a254e249ab7d1fbd4a937102 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Thu, 28 Mar 2019 00:16:17 +0100 Subject: [PATCH] Makefile: Fix getting misspell code when already installed (#7434) Grouping misspell installation code so it won't executed when misspell is found in the current system. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 41ca31674..e30905901 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,10 @@ checks: @(env bash $(PWD)/buildscripts/checkgopath.sh) getdeps: - @mkdir -p $(GOPATH)/bin - @echo "Installing golint" && which golint || go get -u golang.org/x/lint/golint - @echo "Installing staticcheck" && which staticcheck || wget --quiet -O $(GOPATH)/bin/staticcheck https://github.com/dominikh/go-tools/releases/download/2019.1/staticcheck_linux_amd64 && chmod +x $(GOPATH)/bin/staticcheck - @echo "Installing misspell" && which misspell || wget --quiet https://github.com/client9/misspell/releases/download/v0.3.4/misspell_0.3.4_linux_64bit.tar.gz && tar xvf misspell_0.3.4_linux_64bit.tar.gz && mv misspell $(GOPATH)/bin/misspell && chmod +x $(GOPATH)/bin/misspell && rm -r misspell_0.3.4_linux_64bit.tar.gz + @mkdir -p ${GOPATH}/bin + @which golint 1>/dev/null || (echo "Installing golint" && go get -u golang.org/x/lint/golint) + @which staticcheck 1>/dev/null || (echo "Installing staticcheck" && wget --quiet -O ${GOPATH}/bin/staticcheck https://github.com/dominikh/go-tools/releases/download/2019.1/staticcheck_linux_amd64 && chmod +x ${GOPATH}/bin/staticcheck) + @which misspell 1>/dev/null || (echo "Installing misspell" && wget --quiet https://github.com/client9/misspell/releases/download/v0.3.4/misspell_0.3.4_linux_64bit.tar.gz && tar xf misspell_0.3.4_linux_64bit.tar.gz && mv misspell ${GOPATH}/bin/misspell && chmod +x ${GOPATH}/bin/misspell && rm -f misspell_0.3.4_linux_64bit.tar.gz) crosscompile: @(env bash $(PWD)/buildscripts/cross-compile.sh)