forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (32 loc) · 1.08 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
default:
@echo "'make check'" for tests
@echo "'make lint'" for source code checks
@echo "'make ckpatch'" to check a patch
@echo "'make clean'" to clean generated files
@echo "'make deb'" to generate debian package
@echo "'make man'" to generate debian package
.PHONY: check
check:
nosetests -v -d --with-cov --cov libqtile
.PHONY: lint
lint:
flake8 --config=./test/flake8.cfg ./libqtile bin/qtile* bin/qsh
.PHONY: ckpatch
ckpatch: lint check
.PHONY: clean
clean:
-rm -rf dist qtile.egg-info docs/_build build/
# strip off the leading 'v'
VERSION=$(shell git describe --tags | cut -c 2-)
# This is a little ugly: we want to be able to have users just run
# 'python setup.py install' to install qtile, but we would also like to install
# the man pages. I can't figure out a way to have the 'build' target invoke the
# 'build_sphinx' target as well, so we commit the man pages, since they are
# used in the 'install' target.
.PHONY: man
man:
python setup.py build_sphinx -b man
cp build/sphinx/man/* resources/
.PHONY: deb
deb:
git buildpackage --git-upstream-tree=develop --git-ignore-branch