Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. go: performance-graph.pdf
  2. evince performance-graph.pdf
  3. performance-graph.pdf: performance-numbers.db gen-performance-graph
  4. ./gen-performance-graph
  5. .PRECIOUS: performance-numbers.db
  6. performance-numbers.db: test-bloom-filter
  7. ./this-pylint \
  8. --ignore-message ".*Unable to import 'dbm'" \
  9. --ignore-message ".*Unable to import 'anydbm'" \
  10. --to-pylint bloom_filter_mod.py test-bloom-filter
  11. rm -f seek.txt array.txt hybrid.txt mmap.txt
  12. #/usr/local/pypy-1.9/bin/pypy ./test-bloom-filter --performance-test
  13. #/usr/local/pypy-1.7/bin/pypy ./test-bloom-filter --performance-test
  14. #/usr/local/cpython-3.2/bin/python ./test-bloom-filter
  15. /usr/local/cpython-2.5/bin/python ./test-bloom-filter --performance-test
  16. #/usr/local/cpython-2.7/bin/python ./test-bloom-filter
  17. #/usr/local/cpython-3.0/bin/python ./test-bloom-filter
  18. #/usr/local/jython-2.5.2-r7288/bin/jython ./test-bloom-filter
  19. clean:
  20. rm -f *.pyc *.class
  21. rm -rf __pycache__
  22. rm -f bloom-filter-rm-me
  23. rm -f *.ps *.pdf
  24. rm -f seek.txt array.txt
  25. rm -rf dist build drs_bloom_filter.egg-info
  26. veryclean: clean
  27. rm -f performance-numbers.db
  28. rm -f performance-numbers
  29. register:
  30. # Once
  31. python setup.py register
  32. publish:
  33. # Each new version
  34. python setup.py sdist upload