treerack/Makefile

18 lines
248 B
Makefile
Raw Normal View History

2017-06-25 17:51:08 +02:00
SOURCES = $(shell find . -name '*.go')
default: build
imports:
@goimports -w $(SOURCES)
build: $(SOURCES)
go build ./...
check: build
go test ./... -test.short -run ^Test
fmt: $(SOURCES)
@gofmt -w -s $(SOURCES)
2017-06-25 23:38:32 +02:00
precommit: fmt build check