Makefile 771B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Makefile for testing
  2. TESTPYPI = https://testpypi.python.org/pypi
  3. PYPI = https://pypi.python.org/pypi
  4. .PHONY: dogfood clean build dist-test dist \
  5. test test3 unit unit3 reg reg3 profile profile3
  6. dogfood:
  7. ./cdiff.py
  8. git diff | ./cdiff.py -s
  9. test: unit reg
  10. test3: unit3 reg3
  11. unit:
  12. tests/test_cdiff.py
  13. unit3:
  14. python3 tests/test_cdiff.py
  15. reg:
  16. tests/regression.sh
  17. reg3:
  18. PYTHON=python3 tests/regression.sh
  19. profile:
  20. tests/profile.sh profile.tmp
  21. profile3:
  22. tests/profile.sh profile3.tmp
  23. clean:
  24. rm -f MANIFEST profile*.tmp*
  25. rm -rf build/ cdiff.egg-info/ dist/ __pycache__/
  26. build:
  27. ./setup.py build sdist
  28. dist-test:
  29. ./setup.py build sdist register upload -r $(TESTPYPI)
  30. dist:
  31. ./setup.py build sdist register upload -r $(PYPI)
  32. # vim:set noet ts=8 sw=8: