Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit ca51bf8

Browse files
committed
Generate binaries
Signed-off-by: Galo Navarro <gnavarro@newrelic.com>
1 parent 02bf69b commit ca51bf8

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
BIN_DIR=./bin
2+
BINARY=repocket
3+
LINUX_ARCHS=386 amd64 arm arm64
4+
DARWIN_ARCHS=386 amd64
5+
6+
VERSION=0.1
7+
8+
build_all:
9+
mkdir -p ${BIN_DIR}
10+
$(foreach GOARCH, $(LINUX_ARCHS), \
11+
$(shell export GOOS=linux; export GOARCH=$(GOARCH); export GO111MODULE=auto; go build -v -o $(BIN_DIR)/$(BINARY)-linux-$(GOARCH)-$(VERSION) cmd/repocket.go) \
12+
)
13+
$(foreach GOARCH, $(DARWIN_ARCHS), \
14+
$(shell export GOOS=darwin; export GOARCH=$(GOARCH); export GO111MODULE=auto; go build -v -o $(BIN_DIR)/$(BINARY)-darwin-$(GOARCH)-$(VERSION) cmd/repocket.go) \
15+
)
16+
17+
clean:
18+
rm -r ${BIN_DIR} || true

0 commit comments

Comments
 (0)