Makefile 395 B

1234567891011121314151617181920
  1. help:
  2. @echo "test run test"
  3. @echo "lint run lint"
  4. @echo "gen_pinyin_dict gen pinyin dict"
  5. .PHONY: test
  6. test:
  7. @echo "run test"
  8. @go test -v -cover
  9. .PHONY: gen_pinyin_dict
  10. gen_pinyin_dict:
  11. @go run _tools/gen_pinyin_dict.go _tools/pinyin-data/pinyin.txt pinyin_dict.go
  12. .PHONY: lint
  13. lint:
  14. gofmt -s -w . cmd/pinyin _tools
  15. golint .
  16. golint cmd/pinyin
  17. golint _tools