File: Makefile

package info (click to toggle)
python-plyer 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (44 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
PYTHON = python
CHECKSCRIPT = plyer/tools/pep8checker/pep8kivy.py
PLYER_DIR = plyer/

build:
	$(PYTHON) setup.py build

force:
	$(PYTHON) setup.py build -f

debug:
	$(PYTHON) setup.py build -f -g

pdf:
	$(MAKE) -C docs latex && make -C docs/build/latex all-pdf

html:
	env USE_EMBEDSIGNATURE=1 $(MAKE) force
	$(MAKE) -C docs html

style:
	$(PYTHON) $(CHECKSCRIPT) .

stylereport:
	$(PYTHON) $(CHECKSCRIPT) -html $(PLYER_DIR)

hook:
	# Install pre-commit git hook to check your changes for styleguide
	# consistency.
	cp plyer/tools/pep8checker/pre-commit.githook .git/hooks/pre-commit
	chmod +x .git/hooks/pre-commit

install:
	python setup.py install

clean:
	-rm -rf docs/build
	-rm -rf build
	-find plyer -iname '*.so' -exec rm {} \;
	-find plyer -iname '*.pyc' -exec rm {} \;
	-find plyer -iname '*.pyo' -exec rm {} \;

distclean: clean
	-git clean -dxf -e debian