Add make {clean,dist} to Makefile

This commit is contained in:
Paul Makepeace 2011-04-27 19:28:22 +01:00
parent 4d97828324
commit 3b3e297a6b
1 changed files with 17 additions and 2 deletions

View File

@ -1,11 +1,26 @@
# XXX have a Makefile written by someone that knows Makefiles...
NAME=refine-client-py
VERSION = 0.1
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)
test: $(TEST_FILES)
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:
PYTHONPATH=. sh -c 'for t in $(TEST_FILES); do python $$t; done'
smalltest: $(SMALL_TEST_FILES)
smalltest:
PYTHONPATH=. sh -c 'for t in $(SMALL_TEST_FILES); do python $$t; done'
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))