Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Add package Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdelacroix committed Apr 17, 2019
1 parent a2290b2 commit 8a5486e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mmctl
bin
build
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ build: vendor check
install: vendor check
go install -mod=vendor

package: vendor check
mkdir -p build

@echo Build Linux amd64
env GOOS=linux GOARCH=amd64 go build -mod=vendor
tar cf build/linux_amd64.tar mmctl

@echo Build OSX amd64
env GOOS=darwin GOARCH=amd64 go build -mod=vendor
tar cf build/darwin_amd64.tar mmctl

@echo Build Windows amd64
env GOOS=windows GOARCH=amd64 go build -mod=vendor
zip build/windows_amd64.zip mmctl.exe

rm mmctl mmctl.exe

fmt:
go fmt $(GO_PACKAGES)

Expand Down

0 comments on commit 8a5486e

Please sign in to comment.