GO      ?= go
BIN     ?= niagra
VERSION ?= 0.9.0-dev

.PHONY: all build test race vet clean

all: build

build:
	CGO_ENABLED=0 $(GO) build -trimpath \
		-ldflags "-s -w -X main.version=$(VERSION)" \
		-o $(BIN) ./cmd/niagra

test:
	$(GO) test ./...

race:
	$(GO) test -race ./...

vet:
	$(GO) vet ./...

clean:
	rm -f $(BIN)
