Skip to content

Commit

Permalink
Fix Makefile quotes (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev authored May 12, 2023
1 parent 555c1c0 commit d82d472
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lintfix: $(BIN)/golangci-lint $(BIN)/buf ## Automatically fix some lint errors
.PHONY: generate
generate: $(BIN)/buf $(BIN)/protoc-gen-go $(BIN)/protoc-gen-connect-go $(BIN)/license-header ## Regenerate code and licenses
rm -rf internal/gen
PATH=$(abspath $(BIN)) $(BIN)/buf generate
PATH="$(abspath $(BIN))" $(BIN)/buf generate
$(BIN)/license-header \
--license-type apache \
--copyright-holder "Buf Technologies, Inc." \
Expand All @@ -76,19 +76,19 @@ $(BIN)/protoc-gen-connect-go:

$(BIN)/buf: Makefile
@mkdir -p $(@D)
GOBIN=$(abspath $(@D)) $(GO) install github.com/bufbuild/buf/cmd/[email protected]
GOBIN="$(abspath $(@D))" $(GO) install github.com/bufbuild/buf/cmd/[email protected]

$(BIN)/license-header: Makefile
@mkdir -p $(@D)
GOBIN=$(abspath $(@D)) $(GO) install \
GOBIN="$(abspath $(@D))" $(GO) install \
github.com/bufbuild/buf/private/pkg/licenseheader/cmd/[email protected]

$(BIN)/golangci-lint: Makefile
@mkdir -p $(@D)
GOBIN=$(abspath $(@D)) $(GO) install github.com/golangci/golangci-lint/cmd/[email protected]
GOBIN="$(abspath $(@D))" $(GO) install github.com/golangci/golangci-lint/cmd/[email protected]

$(BIN)/protoc-gen-go: Makefile go.mod
@mkdir -p $(@D)
@# The version of protoc-gen-go is determined by the version in go.mod
GOBIN=$(abspath $(@D)) $(GO) install google.golang.org/protobuf/cmd/protoc-gen-go
GOBIN="$(abspath $(@D))" $(GO) install google.golang.org/protobuf/cmd/protoc-gen-go

0 comments on commit d82d472

Please sign in to comment.