24 lines
366 B
Makefile
24 lines
366 B
Makefile
.PHONY: build clean tool lint help
|
|
|
|
all: build
|
|
|
|
build:
|
|
@go build -v .
|
|
|
|
tool:
|
|
go vet ./...; true
|
|
gofmt -w .
|
|
|
|
lint:
|
|
golint ./...
|
|
|
|
clean:
|
|
rm -rf go-gin-example
|
|
go clean -i .
|
|
|
|
help:
|
|
@echo "make: compile packages and dependencies"
|
|
@echo "make tool: run specified go tool"
|
|
@echo "make lint: golint ./..."
|
|
@echo "make clean: remove object files and cached files"
|