Skip to content

Commit

Permalink
Refactoreed make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
cpliakas committed Feb 7, 2021
1 parent 18b204b commit f4db88c
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ VERSION=$(shell git describe --tags)
build:
go build -ldflags "-X main.Version=$(VERSION)"

.PHONY: install
install:
go mod download

.PHONY: test
test:
go test -v ./...

.PHONY: dist
dist:
goreleaser --rm-dist

.PHONY: dist-local
dist-local:
goreleaser --snapshot --skip-publish --rm-dist

.PHONY: run
run:
./dist/goreleaser-test_darwin_amd64/goreleaser-test

.PHONY: tidy
tidy:
go mod tidy

.PHONY: clean
clean:
rm -rf ./dist
rm -rf ./dist
rm -f ./goreeleaser-test

0 comments on commit f4db88c

Please sign in to comment.