From 635ac4a2301cf341c8238ff126127ddea9437f93 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Thu, 3 Oct 2019 10:18:49 +0800 Subject: [PATCH] update at 2019-10-03 10:18:49 by ehlxr --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b3548d0..86cab1e 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ 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 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) + @# $(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" \ -output="$(DIST_DIR){{.Dir}}_{{.OS}}_{{.Arch}}" @@ -26,7 +26,8 @@ clean: rm -rf $(DIST_DIR)* install: - go install -ldflags $(LD_FLAGS) + @# go install -ldflags $(LD_FLAGS) + go build -ldflags $(LD_FLAGS) -o $(GOBIN)/hc # 压缩。需要安装 https://github.com/upx/upx upx: @@ -37,7 +38,7 @@ 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 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) + @# $(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) # this tells 'make' to export all variables to child processes by default.