From 7dac7d0698351d7a35cb0f9ddc9d8b6ff4fe80b8 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 12 Sep 2017 11:44:42 +0800 Subject: [PATCH] add external tools Signed-off-by: Bo-Yi Wu --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index c953379..5880f13 100644 --- a/Makefile +++ b/Makefile @@ -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)