commit: 70a4a5abadb22440889b6b30558862d4b26ca5df
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 31 19:28:58 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 19:28:58 2024 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=70a4a5ab
Makefile: Don't warn about missing eclass doc when in ebuild context
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index d022a32..c4bb713 100644
--- a/Makefile
+++ b/Makefile
@@ -60,10 +60,12 @@ documents.js: bin/build_search_documents.py $(XMLS)
xsltproc --param offline "$(OFFLINE)" devbook.xsl $< > $@
eclass-reference/text.xml:
- @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
+ @if [[ -z $${EBUILD_PHASE} ]]; then \
+ 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; \
+ fi
bin/gen-eclass-html.sh -n
appendices/todo-list/index.html: $(XMLS)