Makefile 491B

1234567891011121314151617181920212223242526272829
  1. # Makefile for testing
  2. TESTPYPI = http://testpypi.python.org/pypi
  3. .PHONY: dogfood test clean dist-test dist
  4. dogfood:
  5. ./cdiff.py -s
  6. git diff | ./cdiff.py
  7. git diff | ./cdiff.py -s
  8. test:
  9. PYTHON=python ./tests/tests.sh
  10. PYTHON=python3 ./tests/tests.sh
  11. clean:
  12. rm -f cdiff MANIFEST
  13. rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
  14. build:
  15. ./setup.py build sdist
  16. dist-test:
  17. ./setup.py build sdist upload -r $(TESTPYPI)
  18. dist:
  19. ./setup.py build sdist upload
  20. # vim:set noet ts=8 sw=8: