Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
Adding makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbafilho committed Mar 8, 2017
1 parent b59cfef commit 38831e4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
dist
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
extension = $(patsubst windows,.exe,$(filter windows,$(1)))
PKG_NAME := helm-chart-publisher
define gocross
GOOS=$(1) GOARCH=$(2) go build -o ./dist/$(PKG_NAME)_$(1)-$(2)$(call extension,$(1));
endef

release:
ghr -draft -u luizbafilho $$TAG ./dist

clean:
rm -Rf ./dist/*

build-all: clean
$(call gocross,linux,amd64)
$(call gocross,linux,arm)
$(call gocross,darwin,amd64)
$(call gocross,windows,amd64)

test:
go test -v -race `glide novendor`

ghr:
go get -u github.com/tcnksm/ghr

0 comments on commit 38831e4

Please sign in to comment.