| |
| |
| |
| |
| SPHINX_JOBS ?= auto |
| SPHINXOPTS ?= -j $(SPHINX_JOBS) |
| SPHINXBUILD = sphinx-build |
| SPHINXPROJ = moabb |
| SOURCEDIR = source |
| BUILDDIR = build |
|
|
| .PHONY: all copy-readme help apidoc html html-noplot |
|
|
| |
| all: copy-readme html |
|
|
| |
| |
| copy-readme: |
| @echo "Copying README.md into $(SOURCEDIR)..." |
| @cp ../README.md $(SOURCEDIR)/README.md |
|
|
| clean: |
| -rm -rf build source/auto_examples source/generated source/results |
|
|
| |
| help: copy-readme |
| @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
|
|
| |
| apidoc: copy-readme |
| sphinx-apidoc -o "$(SOURCEDIR)" ../"$(SPHINXPROJ)" --module-first -d 1 |
|
|
| |
| html: copy-readme |
| @python prepare_summary_tables.py ../moabb/datasets $(BUILDDIR) |
| @python prepare_paper_results_tables.py ../results $(SOURCEDIR)/results |
| @python ../scripts/generate_macro_table.py |
| @$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
|
|
| |
| html-noplot: copy-readme |
| @python prepare_summary_tables.py ../moabb/datasets $(BUILDDIR) |
| @python prepare_paper_results_tables.py ../results $(SOURCEDIR)/results |
| @python ../scripts/generate_macro_table.py |
| @$(SPHINXBUILD) -D plot_gallery=0 -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS) $(O) |
| @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." |
|
|