forked from researchcompendia/researchcompendia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·29 lines (23 loc) · 711 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·29 lines (23 loc) · 711 Bytes
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
.PHONY: clean-pyc clean-build docs
help:
@echo "clean - remove artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with django nose"
@echo "docs - generate Sphinx HTML documentation, including API docs"
clean: clean-pyc
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
lint:
flake8 companionpages
test: lint
companionpages/manage.py test --traceback --debug=DEBUG
docs:
rm -f docs/companionpages.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ companionpages
$(MAKE) -C docs clean
$(MAKE) -C docs html
open docs/_build/html/index.html