update Makefile

This commit is contained in:
kongfei 2022-06-04 22:22:26 +08:00
parent 1ce021279d
commit c63915f881
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#.SILENT:
.SILENT:
.PHONY: build build-linux build-windows pack
APP:=categraf
@ -24,11 +24,11 @@ build-linux:
build-windows:
echo "Building version $(GIT_VERSION) for windows"
GOOS=windows GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP).exe
GOOS=windows GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP).exe
build-mac:
echo "Building version $(GIT_VERSION) for mac"
env GOOS=darwin GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP).mac
GOOS=darwin GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP).mac
pack:build-linux build-windows
rm -rf $(APP)-$(TAR_TAG).tar.gz