2011-01-12 18:05:55 +00:00
|
|
|
PYTHON = python
|
|
|
|
CHECKSCRIPT = kivy/tools/pep8checker/pep8kivy.py
|
|
|
|
KIVY_DIR = kivy/
|
|
|
|
|
2011-01-21 00:08:29 +00:00
|
|
|
mesabuild:
|
2011-01-21 00:11:50 +00:00
|
|
|
$(PYTHON) setup.py build_ext --inplace --define __MESAGL__
|
2011-01-21 00:08:29 +00:00
|
|
|
|
2011-01-16 15:55:21 +00:00
|
|
|
build:
|
|
|
|
$(PYTHON) setup.py build_ext --inplace
|
|
|
|
|
2011-01-12 18:05:55 +00:00
|
|
|
style:
|
|
|
|
$(PYTHON) $(CHECKSCRIPT) $(KIVY_DIR)
|
|
|
|
|
|
|
|
stylereport:
|
|
|
|
$(PYTHON) $(CHECKSCRIPT) -html $(KIVY_DIR)
|
2011-01-13 14:25:07 +00:00
|
|
|
|
|
|
|
hook:
|
|
|
|
cp kivy/tools/pep8checker/pre-commit.githook .git/hooks/pre-commit
|
|
|
|
chmod +x .git/hooks/pre-commit
|
2011-01-20 23:02:29 +00:00
|
|
|
|
|
|
|
test:
|
2011-01-27 15:42:48 +00:00
|
|
|
-rm -rf kivy/tests/build
|
|
|
|
UNITTEST_INTERACTIVE=1 nosetests kivy/tests
|
|
|
|
|
|
|
|
batchtest:
|
2011-01-27 02:38:24 +00:00
|
|
|
-rm -rf kivy/tests/build
|
|
|
|
nosetests kivy/tests
|
2011-01-20 23:02:29 +00:00
|
|
|
|
|
|
|
cover:
|
2011-01-20 23:11:42 +00:00
|
|
|
coverage html --include='$(KIVY_DIR)*' --omit '$(KIVY_DIR)lib/*,$(KIVY_DIR)tools/*,$(KIVY_DIR)tests/*'
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -rf build
|
|
|
|
-rm -rf htmlcov
|
|
|
|
-rm .coverage
|
|
|
|
-rm .noseids
|
2011-01-27 02:38:24 +00:00
|
|
|
-rm -rf kivy/tests/build
|
2011-01-30 13:59:02 +00:00
|
|
|
-find kivy -iname '*.pyc' -exec rm {} \;
|
|
|
|
-find kivy -iname '*.pyo' -exec rm {} \;
|
2011-01-20 23:11:42 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
-git clean -dxf
|