openrefine-client/Makefile

31 lines
920 B
Makefile
Raw Normal View History

2011-04-27 19:53:17 +02:00
# XXX have a Makefile written by someone that knows Makefiles...
2011-04-27 20:28:22 +02:00
NAME=refine-client-py
VERSION = 0.1
2011-04-27 19:53:17 +02:00
SMALL_TEST_FILES = google/test/test_refine_small.py google/test/test_facet.py google/test/test_history.py
LARGE_TEST_FILES = google/test/test_refine.py google/test/test_tutorial.py
TEST_FILES = $(SMALL_TEST_FILES) $(LARGE_TEST_FILES)
2011-04-27 20:28:22 +02:00
SOURCE = google/*.py google/refine/*.py google/test/*.py
TEST_DATA = google/test/data/*.csv
BUMF = README.rst Makefile
ALL = $(SOURCE) $(TEST_DATA) $(BUMF)
2011-04-28 13:01:33 +02:00
readme:
rst2html.py README.rst > README.html
2011-04-27 20:28:22 +02:00
test:
2011-04-27 19:53:17 +02:00
PYTHONPATH=. sh -c 'for t in $(TEST_FILES); do python $$t; done'
2011-04-27 20:28:22 +02:00
smalltest:
2011-04-27 19:53:17 +02:00
PYTHONPATH=. sh -c 'for t in $(SMALL_TEST_FILES); do python $$t; done'
2011-04-27 20:28:22 +02:00
clean:
find . -name '*.pyc' | xargs rm -f
2011-04-28 13:01:33 +02:00
rm -f README.html
2011-04-27 20:28:22 +02:00
# COPYFILE_DISABLE=true for annoying ._* files in OS X
dist: clean
2011-04-28 13:01:33 +02:00
(cd ..; COPYFILE_DISABLE=true tar zcf $(NAME)-$(VERSION).tar.gz --exclude='.*' $(NAME))