Skip to content

Commit 3d1e872

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 <[email protected]>
1 parent add8961 commit 3d1e872

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
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:
@@ -109,9 +111,7 @@ else
109111
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
110112
endif
111113

112-
.PHONY: install.tools
113-
114-
install.tools: .install.esc .install.gitvalidation .install.glide .install.glide-vc
114+
install.tools: $(TOOLS:%=.install.%)
115115

116116
.install.esc:
117117
go get -u github.com/mjibson/esc
@@ -129,6 +129,8 @@ clean:
129129
rm -rf *~ $(OUTPUT_DIRNAME)
130130

131131
.PHONY: \
132+
install.tools \
133+
$(TOOLS:%=.install.%) \
132134
validate-examples \
133135
check-license \
134136
clean \

0 commit comments

Comments
 (0)