chore: add make target to build all binaries together (#1211)

Add make build target that builds all troubleshoot binaries in parallel
using -j make flag that lets make run all make sub-targets as separate jobs
This commit is contained in:
Evans Mungai
2023-06-06 15:15:28 +01:00
committed by GitHub
parent a3b7975690
commit 145bad7e8e

View File

@@ -66,6 +66,11 @@ preflight-e2e-test:
support-bundle-e2e-test:
./test/validate-support-bundle-e2e.sh
# Build all binaries in parallel ( -j )
build:
@echo "Build cli binaries"
$(MAKE) -j support-bundle preflight analyze collect
.PHONY: support-bundle
support-bundle:
go build ${BUILDFLAGS} ${LDFLAGS} -o bin/support-bundle github.com/replicatedhq/troubleshoot/cmd/troubleshoot