From a1c7cef6bd3d0132d9502d6c7b6bb7e75361cb45 Mon Sep 17 00:00:00 2001 From: Vinay Gopalan Date: Mon, 10 Jun 2024 16:55:00 -0700 Subject: [PATCH] avoid generating code each time for dev build --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1053bbc..9340f03 100644 --- a/Makefile +++ b/Makefile @@ -21,10 +21,10 @@ default: dev # into ./bin/ as well as $GOPATH/bin, except for quickdev which # is only put into /bin/ .PHONY: quickdev -quickdev: generate +quickdev: @CGO_ENABLED=0 go build -tags='$(BUILD_TAGS)' -o bin/vault-plugin-secrets-gcp cmd/vault-plugin-secrets-gcp/main.go .PHONY: dev -dev: fmtcheck generate +dev: fmtcheck @CGO_ENABLED=0 BUILD_TAGS='$(BUILD_TAGS)' VAULT_DEV_BUILD=1 sh -c "'$(CURDIR)/scripts/build.sh'" .PHONY: dev-dynamic dev-dynamic: generate