getimap/Makefile

30 lines
405 B
Makefile
Raw Normal View History

2020-03-10 13:57:28 +01:00
# getimap Makefile
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOLINT=golint
GOOPTIONS=-mod=vendor -ldflags="-s -w"
RMCMD=rm
BINNAME=getimap
SRCFILES=cmd/getimap/*.go
all: build
get:
$(GOGET) -u golang.org/x/lint/golint
$(GOGET) -d -t -v
build:
$(GOBUILD) $(GOOPTIONS) -o $(BINNAME) $(SRCFILES)
clean:
$(RMCMD) -f $(BINNAME)
lint:
$(GOLINT)