mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
28 lines
457 B
Makefile
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)
|