PageRenderTime 30ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Makefile

https://bitbucket.org/prologic/circuits/
Makefile | 36 lines | 30 code | 6 blank | 0 comment | 0 complexity | c6c5c13646c69d35ce11ed1e8f5977fe MD5 | raw file
  1. .PHONY: help clean docs graph packages tests
  2. help:
  3. @echo "Please use \`make <target>' where <target> is one of"
  4. @echo " clean to cleanup build and temporary files"
  5. @echo " docs to build the documentation"
  6. @echo " graph to generate dependency graph"
  7. @echo " packages to build python source and egg packages"
  8. @echo " tests to run the test suite"
  9. clean:
  10. @rm -rf build dist circuits.egg-info
  11. @rm -rf .coverage coverage
  12. @rm -rf docs/build
  13. @find . -name '__pycache__' -exec rm -rf {} +
  14. @find . -name '*.pyc' -delete
  15. @find . -name '*.pyo' -delete
  16. @find . -name '*~' -delete
  17. @rm -f *.xml
  18. docs:
  19. @make -C docs html
  20. graph:
  21. @sfood circuits -i -I tests -d -u 2> /dev/null | sfood-graph | dot -Tps | ps2pdf - > circuits.pdf
  22. release:
  23. @python2.6 setup.py clean bdist_egg upload
  24. @python2.7 setup.py clean bdist_egg upload
  25. @python3.2 setup.py clean bdist_egg upload
  26. @python3.3 setup.py clean bdist_egg upload
  27. @python setup.py clean build_sphinx upload_sphinx
  28. @python setup.py clean sdist --formats=bztar,gztar,zip upload
  29. tests:
  30. @python -m tests.main