nat/Makefile
2016-06-11 00:36:41 +10:00

23 lines
355 B
Makefile

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