Skip to content

Commit

Permalink
Merge pull request #8 from catatsuy/feature/add_makefile_for_release
Browse files Browse the repository at this point in the history
for release
  • Loading branch information
catatsuy authored Sep 1, 2018
2 parents a9d750c + e49f370 commit 068ed25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@

vendor/
bin/
release/
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GLIDE = glide

.PHONY: all test bundle
.PHONY: all test vet bundle release

all: bin/notify_slack bin/output

Expand All @@ -10,6 +10,13 @@ bin/notify_slack: cmd/notify_slack/main.go slack/*.go throttle/*.go config/*.go
bin/output: cmd/output/main.go
go build -o bin/output cmd/output/main.go

release:
GOOS=linux go build -o notify_slack cmd/notify_slack/main.go
tar cvf release/notify_slack-linux-amd64.tar.gz notify_slack
GOOS=darwin go build -o notify_slack cmd/notify_slack/main.go
tar cvf release/notify_slack-darwin-amd64.tar.gz notify_slack
rm notify_slack

bundle:
$(GLIDE) install

Expand Down

0 comments on commit 068ed25

Please sign in to comment.