Add Makefile
authorSofian Brabez <sbz@6dev.net>
Thu, 26 Jul 2018 13:46:44 +0000 (14:46 +0100)
committerSofian Brabez <sbz@6dev.net>
Thu, 26 Jul 2018 13:46:44 +0000 (14:46 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d915340
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+.PHONY: build
+
+build:
+       @echo -n Building vaultmon...
+       @go build .
+       @echo done
+
+test:
+       go test -v
+
+coverage:
+       go test -coverprofile=cover.out
+       go tool cover -func=cover.out
+       go tool cover -html=cover.out
+
+clean:
+       rm -rf cover.out ./vaultmon