diff --git a/Makefile b/Makefile index 25a7f38890..c7303750c4 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,10 @@ help: ## Show this help. all: vet sec static build ## Run the tests and build the binary. build: deps ## Build the binary. - CGO_ENABLED=0 go build $(FLAGS) - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $(FLAGS) -o auth-arm64 - CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build $(FLAGS) -o auth-darwin-arm64 + CGO_ENABLED=0 go build $(FLAGS) & \ + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $(FLAGS) -o auth-arm64 & \ + CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build $(FLAGS) -o auth-darwin-arm64 & \ + wait build-strip: deps ## Build a stripped binary, for which the version file needs to be rewritten. echo "package utilities" > internal/utilities/version.go