Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Jan 2, 2016
1 parent 80763c1 commit 729bd46
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
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

0 comments on commit 729bd46

Please sign in to comment.