add external tools

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-09-12 11:44:42 +08:00
parent e6160c4146
commit 7dac7d0698
1 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,9 @@ GO ?= go
DEPLOY_ACCOUNT := appleboy
DEPLOY_IMAGE := $(EXECUTABLE)
GOFMT ?= gofmt "-s"
EXTERNAL_TOOLS=\
github.com/mitchellh/gox \
github.com/kardianos/govendor
TARGETS ?= linux darwin windows
ARCHS ?= amd64 386
@ -42,6 +45,13 @@ ifeq ($(ANDROID_TEST_TOKEN),)
endif
@echo "Already set ANDROID_API_KEY and ANDROID_TEST_TOKEN globale variable."
# bootstrap the build by downloading additional tools
bootstrap:
@for tool in $(EXTERNAL_TOOLS) ; do \
echo "Installing/Updating $$tool" ; \
go get -u $$tool; \
done
fmt:
$(GOFMT) -w $(GOFILES)