From 3b93268d4b2ea1e98263b0329a3b21bed5a03ef1 Mon Sep 17 00:00:00 2001 From: Dario Maiocchi Date: Sat, 11 Nov 2017 13:16:03 +0100 Subject: Add more doc about the Makefile workflow(suggested) --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..a2adfead --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +default: build + +build: gofmtcheck + go build + +install: build + go install + +test: install + bash travis/run_acceptance_test.sh +vet: + @echo "go vet ." + @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \ + echo ""; \ + echo "Vet found suspicious constructs. Please check the reported constructs"; \ + echo "and fix them if necessary before submitting the code for review."; \ + exit 1; \ + fi + +golint: + golint ./libvirt +gofmtcheck: + bash travis/gofmtcheck.sh + +.PHONY: build install test vet fmt golint -- cgit v1.2.3