aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2025-01-06 22:38:59 +0100
committerUlrich Müller <ulm@gentoo.org>2025-01-06 22:38:59 +0100
commit56704a0573b9372eaf12f59f38d23c3298b71d1e (patch)
tree2d05a9f7e415c53c10facda544cfceff2c883ea6
parenteclass-writing: Specify @BLURB more precisely (diff)
downloaddevmanual-master.tar.gz
devmanual-master.tar.bz2
devmanual-master.zip
Makefile: Test for emake instead of EBUILD_PHASEHEADmaster
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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; \