Skip to content

Commit

Permalink
Refine Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hirose31 committed Feb 20, 2023
1 parent 1f2fb5d commit 33593cd
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAIN = ./cmd/s3surfer
VERSION := $$(make -s show-version)
CURRENT_REVISION := $(shell git rev-parse --short HEAD)
BUILD_LDFLAGS := "-s -w -X main.revision=$(CURRENT_REVISION)"
GOBIN ?= $(shell go env GOPATH)/bin
u := $(if $(update),-u) # make update=1 deps

.PHONY: help
Expand Down Expand Up @@ -75,11 +76,27 @@ deps:
go mod tidy

.PHONY: devel-deps
devel-deps:
devel-deps: $(GOBIN)/golint $(GOBIN)/staticcheck $(GOBIN)/gosec $(GOBIN)/gobump $(GOBIN)/ghch $(GOBIN)/ghr $(GOBIN)/goxz

$(GOBIN)/golint:
go install golang.org/x/lint/golint@latest

$(GOBIN)/staticcheck:
go install honnef.co/go/tools/cmd/staticcheck@latest

$(GOBIN)/gosec:
go install github.com/securego/gosec/v2/cmd/gosec@latest

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

$(GOBIN)/ghch:
go install github.com/Songmu/ghch/cmd/ghch@latest

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

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


0 comments on commit 33593cd

Please sign in to comment.