Skip to content

Commit 76aa924

Browse files
authored
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.
1 parent a3aa9fd commit 76aa924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ tools: $(CROSSLINK) $(GOLANGCI_LINT) $(MISSPELL) $(STRINGER) $(TOOLS)/gojq
6262

6363
.PHONY: examples generate build
6464
examples:
65-
@set -e; for ex in $(EXAMPLES); do \
65+
@set -e; for dir in $(EXAMPLES); do \
6666
echo "$(GO) build $${dir}/..."; \
67-
(cd "$${ex}" && \
67+
(cd "$${dir}" && \
6868
$(GO) build .); \
6969
done
7070

0 commit comments

Comments
 (0)