Skip to content

Commit

Permalink
fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Aug 10, 2022
1 parent d05de47 commit 50f687c
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 @@ -18,17 +18,17 @@ install:

.PHONY: show-version
show-version: $(GOBIN)/gobump
@gobump show -r .
gobump show -r .

$(GOBIN)/gobump:
@cd && go get github.com/x-motemen/gobump/cmd/gobump
go install github.com/x-motemen/gobump/cmd/gobump@latest

.PHONY: cross
cross: $(GOBIN)/goxz
goxz -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) .

$(GOBIN)/goxz:
cd && go get github.com/Songmu/goxz/cmd/goxz
go install github.com/Songmu/goxz/cmd/goxz@latest

.PHONY: test
test: build
Expand All @@ -47,7 +47,7 @@ endif
ifneq ($(shell git rev-parse --abbrev-ref HEAD),master)
$(error current branch is not master)
endif
@gobump up -w .
gobump up -w .
git commit -am "bump up version to $(VERSION)"
git tag "v$(VERSION)"
git push origin master
Expand All @@ -58,4 +58,4 @@ upload: $(GOBIN)/ghr
ghr "v$(VERSION)" goxz

$(GOBIN)/ghr:
cd && go get github.com/tcnksm/ghr
go install github.com/tcnksm/ghr@latest

0 comments on commit 50f687c

Please sign in to comment.