From 76aa924e75b22f95bb189337fb9d46b64bc66c53 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Mon, 8 Mar 2021 19:59:41 +0000 Subject: [PATCH] Fix the examples target info messaging (#1676) The echo for the target was copied from other targets that use `dir` as an iteration variable which is not what this target uses. That means that the empty variable `dir` is unexpanded and the unhelpful message of "build /..." is echoed. This updates the iteration variable to match other targets and fixes the info messaging. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 46a44b5f6..b290b6671 100644 --- a/Makefile +++ b/Makefile @@ -62,9 +62,9 @@ tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(STRINGER) $(TOOLS)/gojq .PHONY: examples generate build examples: - @set -e; for ex in $(EXAMPLES); do \ + @set -e; for dir in $(EXAMPLES); do \ echo "$(GO) build $${dir}/..."; \ - (cd "$${ex}" && \ + (cd "$${dir}" && \ $(GO) build .); \ done