Skip to content

Commit 73a4f33

Browse files
Fix Makefile rebuilding all tools when any tool is installed
Ported from @timostamm's fix in the referenced PR. Ref: bufbuild/protovalidate#476
1 parent 286935f commit 73a4f33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ $(TESTDATA_FILE):
9696
$(BIN):
9797
@mkdir -p $(BIN)
9898

99-
$(BIN)/buf: $(BIN) Makefile
99+
$(BIN)/buf: Makefile | $(BIN)
100100
go install github.com/bufbuild/buf/cmd/buf@v${BUF_VERSION}
101101

102-
$(BIN)/license-header: $(BIN) Makefile
102+
$(BIN)/license-header: Makefile | $(BIN)
103103
go install github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header@v${BUF_VERSION}
104104

105-
$(BIN)/protovalidate-conformance: $(BIN) Makefile
105+
$(BIN)/protovalidate-conformance: Makefile | $(BIN)
106106
go install github.com/bufbuild/protovalidate/tools/protovalidate-conformance@$(PROTOVALIDATE_VERSION)

0 commit comments

Comments
 (0)