git-chglog/Makefile
2021-01-09 09:40:04 +01:00

28 lines
457 B
Makefile

.PHONY: clean
clean:
rm -rf ./dist/
rm -rf ./git-chglog
rm -rf $(GOPATH)/bin/git-chglog
rm -rf cover.out
.PHONY: build
build:
go build -i -o git-chglog
.PHONY: test
test:
go test -v `go list ./...`
.PHONY: coverage
coverage:
goverage -coverprofile=cover.out `go list ./...`
go tool cover -func=cover.out
@rm -rf cover.out
.PHONY: install
install:
go install ./cmd/git-chglog
.PHONY: changelog
changelog:
@git-chglog --next-tag $(tag) $(tag)