| 1 | PYTHON = python |
| 2 | CHECKSCRIPT = plyer/tools/pep8checker/pep8kivy.py |
| 3 | PLYER_DIR = plyer/ |
| 4 | |
| 5 | build: |
| 6 | $(PYTHON) setup.py build |
| 7 | |
| 8 | force: |
| 9 | $(PYTHON) setup.py build -f |
| 10 | |
| 11 | debug: |
| 12 | $(PYTHON) setup.py build -f -g |
| 13 | |
| 14 | pdf: |
| 15 | $(MAKE) -C docs latex && make -C docs/build/latex all-pdf |
| 16 | |
| 17 | html: |
| 18 | env USE_EMBEDSIGNATURE=1 $(MAKE) force |
| 19 | $(MAKE) -C docs html |
| 20 | |
| 21 | style: |
| 22 | $(PYTHON) $(CHECKSCRIPT) . |
| 23 | |
| 24 | stylereport: |
| 25 | $(PYTHON) $(CHECKSCRIPT) -html $(PLYER_DIR) |
| 26 | |
| 27 | hook: |
| 28 | # Install pre-commit git hook to check your changes for styleguide |
| 29 | # consistency. |
| 30 | cp plyer/tools/pep8checker/pre-commit.githook .git/hooks/pre-commit |
| 31 | chmod +x .git/hooks/pre-commit |
| 32 | |
| 33 | install: |
| 34 | python setup.py install |
| 35 | |
| 36 | clean: |
| 37 | -rm -rf docs/build |
| 38 | -rm -rf build |
| 39 | -find plyer -iname '*.so' -exec rm {} \; |
| 40 | -find plyer -iname '*.pyc' -exec rm {} \; |
| 41 | -find plyer -iname '*.pyo' -exec rm {} \; |
| 42 | |
| 43 | distclean: clean |
| 44 | -git clean -dxf -e debian |