-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
59 lines (42 loc) · 1.05 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
56
57
58
59
# Makefile for project
.PHONY: clean-pyc clean-build docs
server:
@python manager.py run
# upgrade:
# @alembic upgrade head
# staticdir = june/public/static
# assets:
# @$(MAKE) -C assets build
# static:
# @$(MAKE) -C assets compile
# @uglifyjs ${staticdir}/app.js -m -o ${staticdir}/app.js
# translate
babel-extract:
@python setup.py extract_messages -o messages.pot
# language = zh
# i18n = june/translations
# babel-init:
# @python setup.py init_catalog -i messages.pot -d ${i18n} -l ${language}
# babel-compile:
# @python setup.py compile_catalog -d ${i18n}
# babel-update: babel-extract
# @python setup.py update_catalog -i messages.pot -d ${i18n}
# Common Task
clean: clean-build clean-pyc
@rm -fr cover/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
clean-pyc:
@find . -name '*.pyc' -exec rm -f {} +
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '*~' -exec rm -f {} +
lint:
@flake8 fbone
@flake8 tests
test:
@nosetests -s
coverage:
@rm -f .coverage
@nosetests --with-coverage --cover-package=june --cover-html