30 lines
405 B
Makefile
30 lines
405 B
Makefile
# 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)
|