This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push:
new 407640f Makefile: split the dist to dist-linux
407640f is described below
commit 407640f7f62e843457c56d1b3d43450d355832c9
Author: Rohit Yadav <[email protected]>
AuthorDate: Sat Apr 6 21:33:55 2019 +0530
Makefile: split the dist to dist-linux
Signed-off-by: Rohit Yadav <[email protected]>
---
Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 92a8885..36a4205 100644
--- a/Makefile
+++ b/Makefile
@@ -48,13 +48,18 @@ run: all
debug:
$(GO) build -mod=vendor -gcflags='-N -l' -o cmk && dlv --listen=:2345
--headless=true --api-version=2 exec ./cmk
-dist: all
+dist-mkdir: all
rm -fr dist
mkdir -p dist
+
+dist-linux: dist-mkdir
GOOS=linux GOARCH=amd64 $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o dist/cmk.linux.x86-64
cmk.go
GOOS=linux GOARCH=386 $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o dist/cmk.linux.x86 cmk.go
GOOS=linux GOARCH=arm $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o dist/cmk.linux.arm32 cmk.go
GOOS=linux GOARCH=arm64 $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o dist/cmk.linux.arm64 cmk.go
+
+
+dist: dist-linux
GOOS=windows GOARCH=386 $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o dist/cmk.windows.x86.exe
cmk.go
GOOS=windows GOARCH=amd64 $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o
dist/cmk.windows.x86-64.exe cmk.go
GOOS=darwin GOARCH=amd64 $(GO) build -mod=vendor -ldflags='-s -w -X
main.GitSHA=$(GIT_SHA) -X main.BuildDate=$(DATE)' -o dist/cmk.darwin.x86-64
cmk.go