Makefile 434 B

12345678910111213141516171819202122232425
  1. start:
  2. nohup python3 infer.py > /dev/null 2>&1 &
  3. @sleep 1s
  4. @ps -ef | grep infer.py
  5. debug:
  6. python3 infer.py
  7. status:
  8. @ps -ef | grep infer.py
  9. log:
  10. @tail -f log/runtime.log
  11. help:
  12. @echo "Usage: make <target>"
  13. @echo ""
  14. @echo "make start Start server"
  15. @echo "make status Check server status"
  16. @echo "make log Print log"
  17. @echo "make help Show this help message"
  18. @echo ""
  19. .PHONY: start status help log