-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
35 lines (26 loc) · 841 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
VERSION=2.1.0
BUILDDIR=~build
PYTHONPATH=${PWD}
DBENGINE?=postgres
develop:
pip install -e .[dev]
mkbuilddir:
@mkdir -p ${BUILDDIR}
clean:
rm -fr ${BUILDDIR} dist src/*.egg-info .coverage coverage.xml .eggs .pytest_cache *.log
find src -name __pycache__ -o -name "*.py?" -o -name "*.orig" -prune | xargs rm -rf
find tests -name __pycache__ -o -name "*.py?" -o -name "*.orig" -prune | xargs rm -rf
fullclean:
rm -fr .tox .cache DEMODB.sqlite
$(MAKE) clean
docs:
sphinx-build -b html docs/ ~build/docs/ >/dev/null
docs/intersphinx.py get ~build/docs/objects.inv -p ${MAIN_MODULE} -i docs/intershpinx.rst
sphinx-build -n docs/ ~build/docs/
ifdef BROWSE
firefox ${BUILDDIR}/docs/index.html
endif
demo:
cd tests/demo && ./manage.py makemigrations
cd tests/demo && ./manage.py migrate
cd tests/demo && ./manage.py runserver