Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Add darwin release
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilder committed Oct 15, 2015
1 parent 2f86e68 commit 144ae7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ docker-squash:
dist-clean:
rm -rf dist
rm -f docker-squash-linux-*.tar.gz
rm -f docker-squash-darwin-*.tar.gz

dist: dist-clean
mkdir -p dist/linux/amd64 && GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o dist/linux/amd64/docker-squash
mkdir -p dist/darwin/amd64 && GOOS=darwin GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o dist/darwin/amd64/docker-squash

release: dist
glock sync github.com/jwilder/docker-squash
tar -cvzf docker-squash-linux-amd64-$(TAG).tar.gz -C dist/linux/amd64 docker-squash
tar -cvzf docker-squash-darwin-amd64-$(TAG).tar.gz -C dist/darwin/amd64 docker-squash

0 comments on commit 144ae7b

Please sign in to comment.