Install: split build targets (#656)
Allows one to use `make -f Makefile.release build-arm` to just get an Arm binary.
This commit is contained in:
parent
6062e58c59
commit
4fc1318e28
1 changed files with 13 additions and 3 deletions
|
@ -56,11 +56,21 @@ commit:
|
|||
git commit -am"Release $(VERSION)"
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
@echo Building: $(VERSION)
|
||||
build: build-arm build-darwin build-linux
|
||||
|
||||
.PHONY: build-linux
|
||||
build-linux:
|
||||
@echo Building: linux $(VERSION)
|
||||
|
||||
.PHONY: build-darwin
|
||||
build-darwin:
|
||||
@echo Building: darwin $(VERSION)
|
||||
mkdir -p build/Darwin && CGO_ENABLED=0 GOOS=darwin go build -ldflags="-s -w" -o build/Darwin/$(NAME)
|
||||
|
||||
.PHONY: build-arm
|
||||
build-arm:
|
||||
@echo Building: arm $(VERSION)
|
||||
mkdir -p build/Linux/Arm && CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o build/Linux/Arm/$(NAME)
|
||||
mkdir -p build/Linux && CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o build/Linux/$(NAME)
|
||||
|
||||
|
||||
.PHONY: tar
|
||||
|
|
Loading…
Add table
Reference in a new issue