We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e33d5 commit b6198f9Copy full SHA for b6198f9
.gitignore
@@ -1,2 +1,4 @@
1
/kubecrt
2
/vendor
3
+/bin
4
+/_dist
Makefile
@@ -0,0 +1,14 @@
+BINARY=kubecrt
+
+VERSION=0.1.0
+GIT_COMMIT=`git rev-parse --short @`
5
+LDFLAGS=-X github.com/blendle/kubecrt/config.version=$(VERSION) -X github.com/blendle/kubecrt/config.gitrev=$(GIT_COMMIT)
6
7
+build:
8
+ mkdir -p bin
9
+ go build -o bin/$(BINARY)
10
11
+release:
12
+ mkdir -p _dist
13
+ GOOS=linux GOARCH=amd64 go build -ldflags "-s -w $(LDFLAGS)" -o _dist/$(BINARY)
14
+ GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w $(LDFLAGS)" -o _dist/$(BINARY)_darwin64
0 commit comments