diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-10-31 20:28:58 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-10-31 20:28:58 +0100 |
commit | 70a4a5abadb22440889b6b30558862d4b26ca5df (patch) | |
tree | 6c495b7669f9091f3c858498b8e4e4854eff955f | |
parent | Makefile: More specific prerequisites for install target (diff) | |
download | devmanual-70a4a5abadb22440889b6b30558862d4b26ca5df.tar.gz devmanual-70a4a5abadb22440889b6b30558862d4b26ca5df.tar.bz2 devmanual-70a4a5abadb22440889b6b30558862d4b26ca5df.zip |
Makefile: Don't warn about missing eclass doc when in ebuild context
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) |