Add make {clean,dist} to Makefile
This commit is contained in:
parent
4d97828324
commit
3b3e297a6b
19
Makefile
19
Makefile
|
@ -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))
|
Loading…
Reference in New Issue