BINARY   := node-lookup
GOFLAGS  := -ldflags="-s -w"

.PHONY: all build test lint clean install

all: build

build:
	go build $(GOFLAGS) -o $(BINARY) ./...

test:
	go test -v -race ./...

lint:
	golangci-lint run ./...

clean:
	rm -f $(BINARY)

install:
	go install $(GOFLAGS) ./...
