BINARY="build/iot_service" VERSION=1.0.0 BASH_PATH=D:\Programs\Git\bin\bash.exe export GOARCH=amd64 #环境变量设置 export GOOS=linux build: @go build -o ${BINARY} ./ push-test: ${BASH_PATH} ./push.sh .PHONY: build push-test