Add makefile

This commit is contained in:
Eliot Whalan 2016-06-11 00:36:41 +10:00
parent d0a9524146
commit 633b29794c
1 changed files with 22 additions and 0 deletions

22
Makefile Normal file
View File

@ -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