From 4dd9b350e607a8b8189474a2dc2c49e8ebd53cda Mon Sep 17 00:00:00 2001 From: tsuyoshiwada Date: Sat, 17 Feb 2018 20:29:22 +0900 Subject: [PATCH] chore: Add Makefile for task management --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..e01fec9e --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +.PHONY: bootstrap +bootstrap: clean deps + +.PHONY: deps +deps: + dep ensure -v + +.PHONY: clean +clean: + rm -rf ./vendor/ + rm -rf ./git-chglog + rm -rf $(GOPATH)/bin/git-chglog + +.PHONY: bulid +build: + go build -i -o git-chglog + +.PHONY: test +test: + go test -v `go list ./... | grep -v /vendor/` + +.PHONY: install +install: + go install ./cmd/git-chglog + +.PHONY: chglog +chglog: + git-chglog -c ./.chglog/config.yml