summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-06-18 18:44:22 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2020-06-18 18:44:22 +0200
commit15924bcb67680933f6ef71ddc3cd910fed62fbbd (patch)
treeefeaca8bf9e12a47521b8a117179ace35b92303f /Makefile
parent4f7a6c09dd1b799a53a25166b49d23adceccea7d (diff)
downloadsearxng-15924bcb67680933f6ef71ddc3cd910fed62fbbd.tar.gz
searxng-15924bcb67680933f6ef71ddc3cd910fed62fbbd.zip
[fix] buildprocess of the docs by adding sphinx-doc-prebuilds target
The sphinx-doc-prebuilds is the single point of definition for prerequisites each doc build needs BTW: remove $(LXC_ENV_FOLDER) offset from BOOKS_FOLDER and DOCS_FOLDER path. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index aefd005f4..d10bd9dbf 100644
--- a/Makefile
+++ b/Makefile
@@ -77,19 +77,22 @@ run: buildenv pyenvinstall
# docs
# ----
+sphinx-doc-prebuilds:: buildenv pyenvinstall prebuild-includes
+
PHONY += docs
-docs: buildenv pyenvinstall sphinx-doc prebuild-includes
+docs: sphinx-doc-prebuilds sphinx-doc
$(call cmd,sphinx,html,docs,docs)
-PHONY += docs-live prebuild-includes
-docs-live: buildenv pyenvinstall sphinx-live prebuild-includes
+PHONY += docs-live
+docs-live: sphinx-doc-prebuilds sphinx-live
$(call cmd,sphinx_autobuild,html,docs,docs)
+PHONY += prebuild-includes
prebuild-includes:
- @mkdir -p $(DOCS_BUILD)/includes
- @./utils/searx.sh doc | cat > $(DOCS_BUILD)/includes/searx.rst
- @./utils/filtron.sh doc | cat > $(DOCS_BUILD)/includes/filtron.rst
- @./utils/morty.sh doc | cat > $(DOCS_BUILD)/includes/morty.rst
+ $(Q)mkdir -p $(DOCS_BUILD)/includes
+ $(Q)./utils/searx.sh doc | cat > $(DOCS_BUILD)/includes/searx.rst
+ $(Q)./utils/filtron.sh doc | cat > $(DOCS_BUILD)/includes/filtron.rst
+ $(Q)./utils/morty.sh doc | cat > $(DOCS_BUILD)/includes/morty.rst
$(GH_PAGES)::