Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # med-enterprise-dash
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. target: help
  7. .PHONY: help
  8. help:
  9. @echo "Usage: make [PHONY]"
  10. @sed -n -e '/sed/! s/\.PHONY: //p' Makefile
  11. .PHONY: init
  12. init:
  13. @git submodule sync
  14. @git submodule update --init
  15. @git submodule status
  16. .PHONY: clean
  17. clean:
  18. @py3clean .
  19. @echo ""
  20. .PHONY: dev
  21. dev: fixed test safer todo
  22. .PHONY: fixed
  23. fixed:
  24. @black myapp.py ./src ./bin ./tests
  25. @echo ""
  26. .PHONY: fe
  27. fe:
  28. @./bin/rebuild_frontends
  29. @echo done
  30. .PHONY: run
  31. run:
  32. @./bin/start_testing_api_server
  33. @echo ""
  34. .PHONY: safer
  35. safer:
  36. @mypy src/med_enterprise_dash/utils/session.py --disallow-untyped-defs || echo ""
  37. @mypy src/med_enterprise_dash/utils/toml.py --disallow-untyped-defs \
  38. || echo "Try adding the path: export MYPYPATH=`pwd`/src/med_enterprise_dash"
  39. @echo ""
  40. .PHONY: test
  41. test:
  42. @python3 -m unittest discover
  43. @echo ""
  44. .PHONY: todo
  45. todo:
  46. @echo "TODO:"
  47. @grep -Iirl 'todo' -A 1 ./ --color=always \
  48. --exclude=Makefile \
  49. --exclude-dir=.git \
  50. --exclude-dir=var \
  51. --exclude-dir=lib \
  52. --exclude-dir=bootstrap