cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ro...@apache.org
Subject [cloudstack-cloudmonkey] branch master updated: Makefile: emit builds for various platforms and architectures
Date Tue, 29 Jan 2019 06:42:37 GMT
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 603425f  Makefile: emit builds for various platforms and architectures
603425f is described below

commit 603425f547eca91ddd1f8c3a1744566b43dcca1e
Author: Rohit Yadav <rohit@apache.org>
AuthorDate: Tue Jan 29 12:12:13 2019 +0530

    Makefile: emit builds for various platforms and architectures
    
    Signed-off-by: Rohit Yadav <rohit@apache.org>
---
 Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 0a0beca..92a8885 100644
--- a/Makefile
+++ b/Makefile
@@ -51,10 +51,13 @@ debug:
 dist: all
 	rm -fr dist
 	mkdir -p dist
-	GOOS=linux   GOARCH=amd64 $(GO) build -mod=vendor -ldflags='-s -w -X main.GitSHA=$(GIT_SHA)
-X main.BuildDate=$(DATE)' -o dist/cmk.linux.amd64 cmk.go
+	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=windows GOARCH=amd64 $(GO) build -mod=vendor -ldflags='-s -w -X main.GitSHA=$(GIT_SHA)
-X main.BuildDate=$(DATE)' -o dist/cmk.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.amd64 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
+	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
 
 # Tools
 


Mime
View raw message