-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
NAME=slackcat | ||
VERSION=$(shell cat VERSION) | ||
|
||
build: | ||
mkdir -p build | ||
go get -v -d | ||
GOOS=darwin GOARCH=amd64 go build -o build/slackcat-$(VERSION)-darwin-amd64 | ||
GOOS=linux GOARCH=amd64 go build -o build/slackcat-$(VERSION)-linux-amd64 | ||
|
||
release: | ||
rm -rf release && mkdir release | ||
go get github.com/progrium/gh-release/... | ||
cp build/* release | ||
gh-release create bcicen/$(NAME) $(VERSION) \ | ||
$(shell git rev-parse --abbrev-ref HEAD) $(VERSION) | ||
|
||
.PHONY: release |