summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
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