aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-10-31 20:28:58 +0100
committerUlrich Müller <ulm@gentoo.org>2024-10-31 20:28:58 +0100
commit70a4a5abadb22440889b6b30558862d4b26ca5df (patch)
tree6c495b7669f9091f3c858498b8e4e4854eff955f
parentMakefile: More specific prerequisites for install target (diff)
downloaddevmanual-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--Makefile10
1 files 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)