forked from canonical/python-libmaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (34 loc) · 1.06 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
40
41
42
43
44
45
46
47
48
49
50
PYTHON := python3.5
# ---
develop: bin/python setup.py
bin/python setup.py develop
dist: bin/python setup.py README
bin/python setup.py egg_info sdist
upload: bin/python setup.py README
bin/python setup.py egg_info sdist upload
test: bin/tox
@bin/tox
lint: bin/tox
@bin/tox -e lint
clean:
$(RM) -r bin build dist include lib local share
find . -name '*.py[co]' -print0 | xargs -r0 $(RM) -r
find . -name '__pycache__' -print0 | xargs -r0 $(RM) -r
find . -name '*.egg' -print0 | xargs -r0 $(RM) -r
find . -name '*.egg-info' -print0 | xargs -r0 $(RM) -r
find . -name '*~' -print0 | xargs -r0 $(RM)
$(RM) -r .eggs .tox .coverage TAGS tags
# ---
README: README.md
pandoc --from markdown --to rst --output $@ $^
docs: bin/mkdocs
bin/mkdocs build --config-file doc.yaml --clean --strict
# ---
bin/tox: bin/pip
bin/pip install --quiet --ignore-installed tox
bin/python bin/pip:
virtualenv --python=$(PYTHON) --quiet $(CURDIR)
bin/mkdocs: bin/pip
bin/pip install --quiet --ignore-installed "mkdocs >= 0.14.0"
# ---
.PHONY: develop dist docs test lint clean