智盟项目
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132
  1. .PHONY: build clean tool lint help
  2. APP=applet
  3. all: build
  4. build:
  5. go build -o ./bin/$(APP) ./cmd/main.go
  6. lite:
  7. go build -ldflags "-s -w" -o ./bin/$(APP) ./cmd/main.go
  8. install:
  9. #@go build -v .
  10. go install ./cmd/...
  11. tool:
  12. go vet ./...; true
  13. gofmt -w .
  14. lint:
  15. golint ./...
  16. clean:
  17. rm -rf go-gin-example
  18. go clean -i .
  19. help:
  20. @echo "make: compile packages and dependencies"
  21. @echo "make tool: run specified go tool"
  22. @echo "make lint: golint ./..."
  23. @echo "make clean: remove object files and cached files"