|
|
@ -9,6 +9,8 @@ binary: |
|
|
|
export SWCOMMIT=$(shell git rev-parse --short HEAD) |
|
|
|
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)" |
|
|
|
cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/ |
|
|
|
cd ../weed/mq/client/cmd/weed_pub && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub ../../../../../docker/ |
|
|
|
cd ../weed/mq/client/cmd/weed_sub && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub ../../../../../docker/ |
|
|
|
|
|
|
|
binary_race: options = -race |
|
|
|
binary_race: cgo = 1 |
|
|
|