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