From 633b29794c26d11d38d0a3f7f7ac711b4396a5ac Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 11 Jun 2016 00:36:41 +1000 Subject: [PATCH] Add makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..18d1d8d --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +## simple makefile to log workflow +.PHONY: all test clean build install + +GOFLAGS ?= $(GOFLAGS:) + +all: clean install build + +build: + @go build $(GOFLAGS) ./... + +install: + @go get $(GOFLAGS) ./... + +test: install + @go test $(GOFLAGS) ./... + +bench: install + @go test -run=NONE -bench=. $(GOFLAGS) ./... + +clean: + @go clean $(GOFLAGS) -i ./... + @rm -rf ./build