.PHONY: build test clean fmt lint run BINARY_NAME := pop GO := go GOFLAGS := -v all: build build: $(GO) build $(GOFLAGS) -o $(BINARY_NAME) ./main.go test: $(GO) test -v ./... clean: rm -f $(BINARY_NAME) $(GO) clean fmt: $(GO) fmt ./... lint: $(GO) vet ./... run: build ./$(BINARY_NAME) deps: $(GO) mod download $(GO) mod tidy install: build install -m 755 $(BINARY_NAME) $(GOPATH)/bin/