1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
## simple makefile to log workflow
.PHONY: all test clean build install
GOFLAGS ?= $(GOFLAGS:)
all: install test
build:
@go build $(GOFLAGS) ./...
install:
@go get $(GOFLAGS) ./...
test: install
@go test -cover $(GOFLAGS) ./...
bench: install
@go test -run=NONE -bench=. $(GOFLAGS) ./...
clean:
@go clean $(GOFLAGS) -i ./...
release:
@go get $(GOFLAGS) ./...
@go build -v -o bloom_linux_amd64.bin bloom/*
GOOS=windows GOARCH=amd64 go build -v -o bloom_windows_amd64.exe bloom/*
## EOF
|