openrefine-client/Makefile

33 lines
782 B
Makefile
Raw Normal View History

2011-04-27 19:53:17 +02:00
# XXX have a Makefile written by someone that knows Makefiles...
all: test build install
2011-05-01 20:05:50 +02:00
2011-04-28 13:01:33 +02:00
readme:
# requires docutils, e.g. pip install docutils
2011-04-28 13:01:33 +02:00
rst2html.py README.rst > README.html
w3m -dump README.html | unix2dos > README.txt
2011-04-28 13:01:33 +02:00
2011-04-27 20:28:22 +02:00
test:
python setup.py test
2011-04-27 19:53:17 +02:00
# tests that don't require a Refine server running
2011-04-27 20:28:22 +02:00
smalltest:
python setup.py test --test-suite tests.test_refine_small
python setup.py test --test-suite tests.test_facet
python setup.py test --test-suite tests.test_history
build:
python setup.py build
install:
sudo python setup.py install
2011-04-27 20:28:22 +02:00
clean:
find . -name '*.pyc' | xargs rm -f
# XXX is there some way of having setup.py clean up its junk?
rm -rf README.html build dist refine_client.egg-info distribute-*
2011-04-27 20:28:22 +02:00
upload: clean
python setup.py sdist upload