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 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. all: test
  2. clean:
  3. rm -rf bin
  4. rm -rf tests/*_easyjson.go
  5. rm -rf benchmark/*_easyjson.go
  6. build:
  7. go build -i -o ./bin/easyjson ./easyjson
  8. generate: build
  9. bin/easyjson -stubs \
  10. ./tests/snake.go \
  11. ./tests/data.go \
  12. ./tests/omitempty.go \
  13. ./tests/nothing.go \
  14. ./tests/named_type.go \
  15. ./tests/custom_map_key_type.go \
  16. ./tests/embedded_type.go \
  17. ./tests/reference_to_pointer.go \
  18. bin/easyjson -all ./tests/data.go
  19. bin/easyjson -all ./tests/nothing.go
  20. bin/easyjson -all ./tests/errors.go
  21. bin/easyjson -snake_case ./tests/snake.go
  22. bin/easyjson -omit_empty ./tests/omitempty.go
  23. bin/easyjson -build_tags=use_easyjson ./benchmark/data.go
  24. bin/easyjson ./tests/nested_easy.go
  25. bin/easyjson ./tests/named_type.go
  26. bin/easyjson ./tests/custom_map_key_type.go
  27. bin/easyjson ./tests/embedded_type.go
  28. bin/easyjson ./tests/reference_to_pointer.go
  29. bin/easyjson ./tests/key_marshaler_map.go
  30. bin/easyjson -disallow_unknown_fields ./tests/disallow_unknown.go
  31. test: generate
  32. go test \
  33. ./tests \
  34. ./jlexer \
  35. ./gen \
  36. ./buffer
  37. cd benchmark && go test -benchmem -tags use_easyjson -bench .
  38. golint -set_exit_status ./tests/*_easyjson.go
  39. bench-other: generate
  40. cd benchmark && make
  41. bench-python:
  42. benchmark/ujson.sh
  43. .PHONY: clean generate test build