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

Commit

Permalink
Add makefile for dist
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <b@devel.io>
  • Loading branch information
bruth committed Feb 7, 2022
1 parent 0d20afb commit 9a3b466
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
GOOS := $(shell go env GOOS)
GOARCH := $(shell go env GOARCH)

build:
mkdir -p dist/$(GOOS)-$(GOARCH)
go build \
-o dist/$(GOOS)-$(GOARCH)/nats-subject-profiler \
.

zip-build:
cd dist/$(GOOS)-$(GOARCH) && zip ../nats-subject-profiler-$(GOOS)-$(GOARCH).zip ./*

dist:
GOOS=linux GOARCH=amd64 make build zip-build
GOOS=darwin GOARCH=amd64 make build zip-build
GOOS=windows GOARCH=amd64 make build zip-build

0 comments on commit 9a3b466

Please sign in to comment.