Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (C) 2015-2016 lpschedule-generator contributors. See CONTRIBUTORS.
  4. #
  5. # This file is part of lpschedule-generator.
  6. #
  7. # lpschedule-generator is free software: you can redistribute it
  8. # and/or modify it under the terms of the GNU General Public License
  9. # as published by the Free Software Foundation, either version 3 of
  10. # the License, or (at your option) any later version.
  11. #
  12. # lpschedule-generator is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. # General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with lpschedule-generator (see COPYING). If not, see
  19. # <http://www.gnu.org/licenses/>.
  20. test:
  21. @nosetests
  22. .PHONY: test
  23. build-dist:
  24. @python setup.py sdist bdist_wheel
  25. egg:
  26. @python setup.py egg_info
  27. upload:
  28. @twine upload -r pypi -s -i '1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377' dist/*.tar.gz
  29. @twine upload -r pypi -s -i '1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377' dist/*.whl
  30. .PHONY: build-dist egg upload
  31. docs:
  32. @$(MAKE) -C docs html
  33. upload-docs: docs
  34. @rsync -avz --delete docs/_build/html/ $(LPSG_DOCS_HOST)
  35. .PHONY: docs upload-docs
  36. venv:
  37. virtualenv --clear --python=python2.7 venv
  38. .PHONY: venv
  39. clean-build:
  40. @rm -rf build/
  41. @rm -rf dist/
  42. @rm -rf *.egg-info
  43. clean-pyc:
  44. @find . -name '*.pyc' -exec rm -f {} +
  45. clean-venv:
  46. @rm -rf bin/
  47. @rm -rf include/
  48. @rm -rf lib/
  49. @rm -rf local/
  50. @rm -rf man/
  51. clean-docs:
  52. @$(MAKE) -C docs clean
  53. .PHONY: clean-build clean-pyc clean-venv clean-docs
  54. dev-packages:
  55. @pip install -U nose mock restructuredtext_lint
  56. @pip install -U wheel twine
  57. @pip install -U Sphinx
  58. .PHONY: dev-packages