commit:     97e657e31519d09f0517f89599233cc9bda79ac8
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  6 10:38:28 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb  6 10:38:28 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=97e657e3

Makefile: Output a warning if eclass documentation is not found

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8eb405c..618b190 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,11 @@ documents.js: bin/build_search_documents.py $(XMLS)
        xsltproc --param offline "$(OFFLINE)" devbook.xsl $< > $@
 
 eclass-reference/text.xml:
-       bin/gen-eclass-html.sh
+       @echo "*** Warning: No eclass documentation found." >&2
+       @echo "Install app-doc/eclass-manpages and" >&2
+       @echo "run bin/gen-eclass-html.sh before calling make." >&2
+       @echo "Creating a placeholder index as fallback." >&2
+       bin/gen-eclass-html.sh -n
 
 # Each HTML file must depend on its XML file with all its descendants
 # (for the contents tree), all its ancestors (for breadcrumbs), and

Reply via email to