-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (51 loc) · 1.32 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
60
61
PYTEST_EXE ?= $(shell which py.test)
PYTHON_EXE ?= $(shell which python3)
SPHINXBUILD = sphinx-build
SOURCEDIR = docs/source
BUILDDIR = docs/build
SPHINXOPTS =
.PHONY: help html pytest clean clean-all install test setup
help:
@echo "Please use one of the following targets.:"
@echo "html"
@echo "dirhtml"
@echo "singlehtml"
@echo "text"
@echo "man"
@echo "info"
@echo "changes"
@echo "linkcheck"
@echo "doctest"
@echo "coverage"
@echo "pytest"
@echo "clean"
@echo "clean-all"
@echo "install"
@echo "test"
@echo "setup"
html:
@cd docs && make html
pytest:
$(PYTEST_EXE) -v -s test
clean:
@find . -name \*.py[cod] -delete
@find . -name __pycache__ -delete
@rm -rf .cache build
@rm -f .coverage .coverage.* junit.xml tmpfile.rc conda/.version tempfile.rc coverage.xml
@rm -rf auxlib bin conda/progressbar
@rm -rf conda-build conda_build_test_recipe record.txt
@rm -rf .pytest_cache
clean-all: clean
@rm -rf *.egg-info*
@rm -rf dist build
install:
$(PYTHON_EXE) setup.py build
$(PYTHON_EXE) -m pip install -U -e .
test:
$(PYTHON_EXE) -m unittest discover
setup:
$(PYTHON_EXE) setup.py
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)