-
Notifications
You must be signed in to change notification settings - Fork 6
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
Donald Guy
committed
May 4, 2016
1 parent
1015c47
commit 81a9749
Showing
2 changed files
with
22 additions
and
1 deletion.
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,20 @@ | ||
NAME:=$(shell basename $$PWD) | ||
ARCH:=$(shell uname -m) | ||
REPO:=$(shell git config --get remote.origin.url | perl -ne 'm{github.com[:/](.+/[^.]+)}; print $$1') | ||
VERSION=0.0.2 | ||
|
||
build: | ||
go build | ||
|
||
build_linux: | ||
docker-machine start || true | ||
bash -c 'eval $$(docker-machine env) ; rocker build --no-garbage' | ||
|
||
release: build build_linux | ||
rm -rf release && mkdir release | ||
mkdir -p build/Darwin && mv $(NAME) build/Darwin | ||
tar -zcf release/$(NAME)_$(VERSION)_darwin_$(ARCH).tgz -C build/Darwin $(NAME) | ||
tar -zcf release/$(NAME)_$(VERSION)_linux_$(ARCH).tgz -C build/Linux $(NAME) | ||
gh-release create $(REPO) $(VERSION) master | ||
|
||
.PHONY: release build build_linux |
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