forked from kivy/kivy-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (20 loc) · 773 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PYTHON = python
CHECKSCRIPT = tools/pep8checker/pep8kivy.py
KIVY_DIR =
KIVY_USE_DEFAULTCONFIG = 1
HOSTPYTHON = $(KIVYIOSROOT)/tmp/Python-$(PYTHON_VERSION)/hostpython
IOSPATH := $(PATH):/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
hook:
# Install pre-commit git hook to check your changes for styleguide
# consistency.
cp tools/pep8checker/pre-commit.githook .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
style:
$(PYTHON) $(CHECKSCRIPT) .
stylereport:
$(PYTHON) $(CHECKSCRIPT) -html .
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " hook add Pep-8 checking as a git precommit hook"
@echo " style to check Python code for style hints."
@echo " style-report make html version of style hints"