update JetBrains License Server Makefile

This commit is contained in:
2018-01-22 18:41:51 +08:00
parent 416fa4f88d
commit 92a372dcef
3 changed files with 33 additions and 27 deletions

View File

@@ -3,8 +3,9 @@ GOARCH := $(shell go env | awk -F= '$$1=="GOARCH" {print $$2}' | awk -F '"' '{pr
.PHONY: build
build:
@go build -ldflags "-s -w" -o JetBrainsLicenseServer_$(GOOS)_$(GOARCH)
@upx JetBrainsLicenseServer_$(GOOS)_$(GOARCH)
echo $(strip $(GOOS))-2
go build -ldflags "-s -w" -o JetBrainsLicenseServer_$(strip $(GOOS))_$(strip $(GOARCH))
@upx JetBrainsLicenseServer_$(strip $(GOOS))_$(strip $(GOARCH))
.PHONY: amd64
amd64: