From 03ca26fdeb6366dc8507291f9a736b7ce7ae9d42 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 2 Apr 2017 10:25:13 -0400 Subject: [PATCH] doc: build json files from the documentation Change-Id: I30db3a3f0d16cb929c74756a4d1bd8baf2ce8a11 Signed-off-by: Anas Nashif --- doc/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 5bb9ef9bd5d..ebfe8b84d47 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -75,6 +75,9 @@ content: scripts/extract_content.py kconfig: scripts/genrest/genrest.py $(Q)srctree=../ SRCARCH=x86 python $< ../Kconfig reference/kconfig/ + +prep: doxy content kconfig + html: content kconfig $(Q)$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @rm -rf samples @@ -95,8 +98,10 @@ pickle: @echo @echo "Build finished; now you can process the pickle files." -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json +json: prep + $(SPHINXBUILD) -t $(DOC_TAG) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @rm -rf samples + @rm -rf boards @echo @echo "Build finished; now you can process the JSON files."