/
Makefile
55 lines (43 loc) · 865 Bytes
/
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: test
test: pep8 clean
python runtests.py -s
.PHONY: tox-toxtest
tox-test: environment
@tox
.PHONY: install
install:
python setup.py develop
.PHONY: pep8
pep8:
@flake8 opps --ignore=F403,F401 --exclude=migrations,postgresql_psycopg2
.PHONY: sdist
sdist: test
@python setup.py sdist upload
.PHONY: clean
clean:
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
.PHONY: makemessages
makemessages:
@sh scripts/makemassages.sh
.PHONY: compilemessages
compilemessages:
@sh scripts/compilemessages.sh
.PHONY: tx
tx:
@sh scripts/tx.sh
.PHONY: txpush
txpush:
tx push --scriptsource --translations
.PHONY: txpull
txpull:
tx pull -a
.PHONY: doc-github
doc-github:
@mkdocs build
@ghp-import site
@git push origin gh-pages
.PHONY: doc-serve
doc-serve:
@mkdocs serve