aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosselin Poiret <dev@jpoiret.xyz>2023-05-12 10:00:00 +0200
committerJosselin Poiret <dev@jpoiret.xyz>2023-08-25 14:24:24 +0200
commitca8acad38264dd29a808904d3ce8e7249194d95f (patch)
tree4b32722c7206ff9b9eb59ce0f431d9a76626b458
parentd57cab764122af69d52d8cc9c843456044e5d7bc (diff)
downloadguix-ca8acad38264dd29a808904d3ce8e7249194d95f.tar.gz
guix-ca8acad38264dd29a808904d3ce8e7249194d95f.zip
build: Add dependency on guix script for help2man targets.
* doc/local.mk: Add dependency on guix script for help2man targets. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--doc/local.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/local.mk b/doc/local.mk
index 89285b9f35..9d1e3ff7e4 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -229,8 +229,8 @@ $(srcdir)/%D%/guix.1: scripts/guix.in $(sub_commands_mans)
# The 'case' ensures the man pages are only generated if the corresponding
# source script (the first prerequisite) has been changed. The $(GOBJECTS)
# prerequisite is solely meant to force these docs to be made only after all
-# Guile modules have been compiled.
-$(srcdir)/%D%/guix-%.1: guix/scripts/%.scm $(GOBJECTS)
+# Guile modules have been compiled. We also need the guix script to exist.
+$(srcdir)/%D%/guix-%.1: scripts/guix guix/scripts/%.scm $(GOBJECTS)
-@case '$?' in \
*$<*) $(AM_V_P) && set -x || echo " HELP2MAN $@"; \
$(gen_man) --output="$@" "guix $*";; \