openrefine-client/Makefile

26 lines
853 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)
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
# COPYFILE_DISABLE=true for annoying ._* files in OS X
dist: clean
(cd ..; COPYFILE_DISABLE=true tar zcf $(NAME)-$(VERSION).tar.gz --exclude='.*' $(NAME))