From a85b6a4d0f0f31c00c75b8f2302f9cd6c1ed565c Mon Sep 17 00:00:00 2001 From: ehlxr Date: Tue, 8 Oct 2019 16:42:02 +0800 Subject: [PATCH] update at 2019-10-08 16:42:02 by ehlxr --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6221552..967aa46 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ LD_FLAGS := "$(LD_GIT_COMMIT) $(LD_BUILD_TIME) $(LD_GO_VERSION) $(LD_VERSION) - build: ifneq ($(shell type gox >/dev/null 2>&1;echo $$?), 0) @echo "Can't find gox command, will start installation..." - GO111MODULE=off go get -v -u github.com/mitchellh/gox + cd ~ && go get -v -u github.com/mitchellh/gox && cd $(ROOT_DIR) endif @# $(if $(findstring 0,$(shell type gox >/dev/null 2>&1;echo $$?)),,echo "Can't find gox command, will start installation...";GO111MODULE=off go get -v -u github.com/mitchellh/gox) gox -ldflags $(LD_FLAGS) -osarch="darwin/amd64 linux/386 linux/amd64 windows/amd64" \ @@ -35,7 +35,7 @@ upx: release: build upx ifneq ($(shell type ghr >/dev/null 2>&1;echo $$?), 0) @echo "Can't find ghr command, will start installation..." - GO111MODULE=off go get -v -u github.com/tcnksm/ghr + cd ~ && go get -v -u github.com/tcnksm/ghr && cd $(ROOT_DIR) endif @# $(if $(findstring 0,$(shell type ghr >/dev/null 2>&1;echo $$?)),,echo "Can't find ghr command, will start installation...";GO111MODULE=off go get -v -u github.com/tcnksm/ghr) ghr -u ehlxr -t $(GITHUB_RELEASE_TOKEN) -replace -delete --debug ${BUILD_VERSION} $(DIST_DIR)