From db315784388f899e5aff93ffdeee1e42f4c6df54 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 3 Aug 2022 10:14:38 -0700 Subject: [PATCH] Add 32 bit build target for linux --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 87db8a61c..20b73b78a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -# A lot of this Makefile right now is temporary since we have a private -# repo so that we can more sanely create ASSETFS_PATH?=internal/server/gen/bindata_ui.go GIT_COMMIT=$$(git rev-parse --short HEAD) @@ -20,8 +18,7 @@ debug: # debug creates an executable with optimizations off, suitable for debugg .PHONY: bin/windows bin/windows: # create windows binaries - GOOS=linux GOARCH=amd64 go build -o ./internal/assets/ceb/ceb ./cmd/vagrant-entrypoint - cd internal/assets && go-bindata -pkg assets -o prod.go -tags assetsembedded ./ceb + @test -s "thirdparty/proto/api-common-protos/.git" || { echo "git submodules not initialized, run 'git submodule update --init --recursive' and try again"; exit 1; }# GOOS=windows GOARCH=amd64 CGO_ENABLED=$(CGO_ENABLED) go build -ldflags $(GOLDFLAGS) -tags assetsembedded -o ./vagrant.exe ./cmd/vagrant .PHONY: bin/linux @@ -29,6 +26,11 @@ bin/linux: # create Linux binaries @test -s "thirdparty/proto/api-common-protos/.git" || { echo "git submodules not initialized, run 'git submodule update --init --recursive' and try again"; exit 1; } GOOS=linux GOARCH=amd64 $(MAKE) bin +.PHONY: bin/linux-386 +bin/linux-386: # create Linux binaries + @test -s "thirdparty/proto/api-common-protos/.git" || { echo "git submodules not initialized, run 'git submodule update --init --recursive' and try again"; exit 1; } + GOOS=linux GOARCH=386 $(MAKE) bin + .PHONY: bin/darwin bin/darwin: # create Darwin binaries @test -s "thirdparty/proto/api-common-protos/.git" || { echo "git submodules not initialized, run 'git submodule update --init --recursive' and try again"; exit 1; }