Speed up all make targets by only finding generated files when we need to (#1937)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-03-21 13:26:01 -04:00
1 parent 9dc8c45634
commit af1fafab64
1 file changed
+1 -3
+1 -3
View File
@@ -6,8 +6,6 @@ THIS_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
TMP_DIR := $(shell mktemp -d)
REPO_PATH := github.com/hashicorp/boundary
GENERATED_CODE := $(shell find ${THIS_DIR} -name '*.gen.go' && find ${THIS_DIR} -name '*.pb.go' && find ${THIS_DIR} -name '*.pb.gw.go')
CGO_ENABLED?=0
export GEN_BASEPATH := $(shell pwd)
@@ -26,7 +24,7 @@ tools:
.PHONY: cleangen
cleangen:
@rm -f ${GENERATED_CODE}
@rm -f $(shell find ${THIS_DIR} -name '*.gen.go' && find ${THIS_DIR} -name '*.pb.go' && find ${THIS_DIR} -name '*.pb.gw.go')
.PHONY: install-no-plugins
install-no-plugins: export SKIP_PLUGIN_BUILD=1