Makefile 701B

123456789101112131415161718192021222324252627282930313233
  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. ./cdiff.py -s
  7. git diff | ./cdiff.py
  8. git diff | ./cdiff.py -s
  9. test: $(TESTS)
  10. $(TESTS):
  11. python2 ./cdiff.py tests/$@.diff
  12. python2 ./cdiff.py tests/$@.diff -s
  13. python2 ./cdiff.py tests/$@.diff | diff -u tests/$@.diff -
  14. python3 ./cdiff.py tests/$@.diff
  15. python3 ./cdiff.py tests/$@.diff -s
  16. python3 ./cdiff.py tests/$@.diff | diff -u tests/$@.diff -
  17. clean:
  18. rm -f cdiff MANIFEST
  19. rm -rf build/ cdiff.egg-info/ dist/
  20. dist-test:
  21. ./setup.py build sdist upload -r $(TESTPYPI)
  22. dist:
  23. ./setup.py build sdist upload
  24. # vim:set noet ts=8 sw=8: