Makefile 882 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright (C) 2017 Alpha Griffin
  2. # @%@~LICENSE~@%@
  3. #
  4. # A simple make file for any Python project.
  5. .PHONY: default
  6. default: help
  7. @echo
  8. @echo "Please choose a make target and try again."
  9. help:
  10. @echo "Please use \`make <target>' where <target> is one of"
  11. @echo " help display this help screen"
  12. @echo ""
  13. @echo " all to make all common tasks: python"
  14. @echo " clean to clean all common tasks: python_clean"
  15. @echo ""
  16. @echo " install to install what has been built to the system (first try make all)"
  17. @echo ""
  18. @echo " python to build Python code"
  19. @echo " python_clean to clean up after Python build"
  20. all: python
  21. clean: python_clean
  22. python:
  23. ./setup.py build_py
  24. python_clean:
  25. ./setup.py clean
  26. rm -rf build
  27. rm -rf *.egg-info
  28. find . -type d -name __pycache__ | xargs -r rm -r
  29. install:
  30. ./setup.py install