-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathMakefile
59 lines (47 loc) · 1.67 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
# Minimal makefile for Sphinx documentation
# You can set these variables from the command line.
SPHINXOPTS = .
SPHINXBUILD = sphinx-build
SPHINXPROJ = meegkit
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " html to make standalone HTML files"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
.PHONY: help Makefile clean html linkcheck doctest
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
# %: Makefile
# @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
clean:
-rm -rf _build/*
-rm -rf _source/*
-rm -rf auto_examples/*
-rm -rf generated
-rm -rf *.stc
-rm -rf *.fif
-rm -rf *.nii.gz
apidoc:
sphinx-apidoc -f -o _source/ ../meegkit/ ../tests*
@echo
@echo "Sources built. The sources are in _sources/"
html:
$(SPHINXBUILD) -b html $(SOURCEDIR) _build/html
@echo
@echo "Build finished. The HTML pages are in _build/html."
doc: clean html
linkcheck:
$(SPHINXBUILD) -b linkcheck $(SOURCEDIR) _build/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in _build/linkcheck/output.txt."
doctest:
$(SPHINXBUILD) -b doctest .$(SOURCEDIR) _build/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in _build/doctest/output.txt."
view:
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/_build/html/index.html')"
show: view