Add makefile
This commit is contained in:
parent
d0a9524146
commit
633b29794c
|
@ -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
|
Loading…
Reference in New Issue