forked from staugur/Flask-PluginKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (44 loc) · 1.41 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
51
52
53
54
55
.PHONY: clean
help:
@echo " clean remove unwanted stuff"
@echo " dev make a development package"
@echo " test run the tests"
@echo " publish-test package and upload a release to test.pypi.org"
@echo " publish-release package and upload a release to pypi.org"
@echo " html use the sphinx-build based on reST build HTML file"
@echo " gettext make gettext"
@echo " cn sphinx-intl update pot for zh_CN"
@echo " html-cn generate the zh_CN translation document"
@echo " pipe make html with en and cn, then clean"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '.DS_Store' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
find . -name '.coverage' -exec rm -rf {} +
rm -rf build dist .eggs *.egg-info +
dev:
pip install .
$(MAKE) clean
test:
python setup.py test
$(MAKE) clean
publish-test:
python setup.py publish --test
publish-release:
python setup.py publish --release
html:
cd docs && sphinx-build -E -T -b html . _build/html
gettext:
cd docs && sphinx-build -b gettext . _build/gettext
cn:
cd docs && sphinx-intl update -p _build/gettext -l zh_CN
html-cn:
cd docs && sphinx-build -E -T -D language=zh_CN -b html . _build/html_cn
pipe:
$(MAKE) html
$(MAKE) gettext
$(MAKE) cn
$(MAKE) html-cn
$(MAKE) clean