Skip to content

Commit

Permalink
add build, build-all command to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Nov 24, 2017
1 parent c3008c1 commit 3bcaa2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ clean:
rm -rf build/ release/ arch-release/

build:
dep ensure
CGO_ENABLED=0 go build -ldflags "-s -X main.version=$(VERSION) -X main.build=$(BUILD)" -o slackcat

build-all:
mkdir -p build
go get -v -d
GOOS=darwin GOARCH=amd64 go build -ldflags "-s -X main.version=$(VERSION) -X main.build=$(BUILD)" -o build/slackcat-$(VERSION)-darwin-amd64
GOOS=linux GOARCH=amd64 go build -ldflags "-s -X main.version=$(VERSION) -X main.build=$(BUILD)" -o build/slackcat-$(VERSION)-linux-amd64
GOOS=linux GOARCH=arm go build -ldflags "-s -X main.version=$(VERSION) -X main.build=$(BUILD)" -o build/slackcat-$(VERSION)-linux-arm
Expand Down

0 comments on commit 3bcaa2a

Please sign in to comment.