Skip to content

Commit 92f6ce6

Browse files
committed
Makefile: Add .install.* to .PHONY
Also consolidate the install.tools entry in the .PHONY block at the end of the Makefile. The $(var:pattern=replacement) syntax is documented in [1]. [1]: https://www.gnu.org/software/make/manual/html_node/Text-Functions.html#index-patsubst-1 Signed-off-by: W. Trevor King <wking@tremily.us>
1 parent 8d7de86 commit 92f6ce6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ DOC_FILENAME ?= oci-image-spec
4040

4141
EPOCH_TEST_COMMIT ?= v0.2.0
4242

43+
TOOLS := esc gitvalidation glide glide-vc
44+
4345
default: check-license lint test
4446

4547
help:
@@ -111,7 +113,7 @@ else
111113
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
112114
endif
113115

114-
install.tools: .install.esc .install.gitvalidation .install.glide .install.glide-vc
116+
install.tools: $(TOOLS:%=.install.%)
115117

116118
.install.esc:
117119
go get -u github.com/mjibson/esc
@@ -129,6 +131,7 @@ clean:
129131
rm -rf *~ $(OUTPUT_DIRNAME) header.html
130132

131133
.PHONY: \
134+
$(TOOLS:%=.install.%) \
132135
validate-examples \
133136
check-license \
134137
clean \

0 commit comments

Comments
 (0)