diff --git a/Makefile b/Makefile index 28d70672c..bb69ace03 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,10 @@ DOC_FILES := \ runtime-config.md \ runtime-config-linux.md \ glossary.md +EPOCH_TEST_COMMIT := 041eb73d2e0391463894c04c8ac938036143eba3 docs: pdf html +.PHONY: docs pdf: @mkdir -p output/ && \ @@ -40,6 +42,22 @@ html: vbatts/pandoc -f markdown_github -t html5 -o /output/docs.html $(patsubst %,/input/%,$(DOC_FILES)) && \ ls -sh $(shell readlink -f output/docs.html) +.PHONY: test .govet .golint .gitvalidation + +test: .govet .golint .gitvalidation + +# `go get golang.org/x/tools/cmd/vet` +.govet: + go vet -x ./... + +# `go get github.com/golang/lint/golint` +.golint: + golint ./... + +# `go get github.com/vbatts/git-validation` +.gitvalidation: + git-validation -q -run DCO,short-subject -v -range $(EPOCH_TEST_COMMIT)..HEAD + clean: rm -rf output/ *~