commit: 56704a0573b9372eaf12f59f38d23c3298b71d1e
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 6 21:38:59 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 6 21:38:59 2025 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=56704a05
Makefile: Test for emake instead of EBUILD_PHASE
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index ff9e852..e0d7663 100644
--- a/Makefile
+++ b/Makefile
@@ -56,7 +56,9 @@ $(HTMLS): %index.html: %text.xml devbook.xsl xsl/*.xsl
xsltproc --param offline "$(OFFLINE)" devbook.xsl $< > $@
eclass-reference/text.xml:
- @if [[ -z $${EBUILD_PHASE} ]]; then \
+ @# Are we called from an ebuild? The test only controls the
+ @# output of a warning, so no big issue if the heuristic fails
+ @if ! type -p emake >/dev/null; 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; \