git-chglog/Makefile
2018-03-12 00:25:38 +09:00

38 lines
642 B
Makefile

.PHONY: bootstrap
bootstrap: clean deps
.PHONY: deps
deps:
dep ensure -v
.PHONY: clean
clean:
rm -rf ./vendor/
rm -rf ./dist/
rm -rf ./git-chglog
rm -rf $(GOPATH)/bin/git-chglog
rm -rf cover.out
.PHONY: bulid
build:
go build -i -o git-chglog
.PHONY: test
test:
go test -v `go list ./... | grep -v /vendor/`
.PHONY: coverage
coverage:
goverage -coverprofile=cover.out `go list ./... | grep -v /vendor/`
go tool cover -func=cover.out
@rm -rf cover.out
.PHONY: install
install:
go install ./cmd/git-chglog
.PHONY: changelog
changelog:
@git tag $(tag) > /dev/null 2>&1
@git-chglog $(tag)
@git tag -d $(tag) > /dev/null 2>&1