蛋蛋星球-客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 514 B

2 weeks ago
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"