Makefile 722B

123456789101112131415161718192021222324252627282930313233343536
  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. ./cdiff.py tests/$@.diff
  12. ./cdiff.py tests/$@.diff -s
  13. ./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/ __pycache__/
  20. build:
  21. ./setup.py build sdist
  22. dist-test:
  23. ./setup.py build sdist upload -r $(TESTPYPI)
  24. dist:
  25. ./setup.py build sdist upload
  26. # vim:set noet ts=8 sw=8: