Commit 4fc1318e authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Install: split build targets (#656)

Allows one to use `make -f Makefile.release build-arm` to just get an
Arm binary.
parent 6062e58c
...@@ -56,11 +56,21 @@ commit: ...@@ -56,11 +56,21 @@ commit:
git commit -am"Release $(VERSION)" git commit -am"Release $(VERSION)"
.PHONY: build .PHONY: build
build: build: build-arm build-darwin build-linux
@echo Building: $(VERSION)
.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) 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/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 .PHONY: tar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment