blob: 2610fd3ec5770554d2799d38125fd7ac0a73e29b [file] [log] [blame]
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = Apache Mynewt
SOURCEDIR = _scratch
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile clean docs
docs: _scratch html
_scratch:
mkdir _scratch
cp -a docs/* _scratch
# Copy in docs/ from each of the mynewt-* projects.
# NOTE: paths here need to match edit_on_github in conf.py
cp -a ../mynewt-core/docs/os _scratch/os
#
cp -a ../mynewt-nimble/docs _scratch/network
#
cp -a ../mynewt-newt/docs _scratch/newt
#
cp -a ../mynewt-newtmgr/docs _scratch/newtmgr
#
doxygen doxygen-mynewt-core.xml
clean:
rm -rf _build _scratch
# 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)