maint: Fix help2man for guix subcommands with `make V=2'.

* doc/local.mk ($(srcdir)/%D%/guix-%.1): Use AM_V_HELP2MAN and cater for
make's `@' silencing at the start of the command.

Change-Id: Id80c48f0d7697167fea64700a7fe140003732d28
This commit is contained in:
Janneke Nieuwenhuizen 2024-04-03 16:16:00 +02:00
parent 1dbe492b99
commit df64d48e6f
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -233,8 +233,7 @@ $(srcdir)/%D%/guix.1: scripts/guix.in $(sub_commands_mans)
# Guile modules have been compiled. We also need the guix script to exist.
$(srcdir)/%D%/guix-%.1: guix/scripts/%.scm $(GOBJECTS) scripts/guix
-@case '$?' in \
*$<*) $(AM_V_P) && set -x || echo " HELP2MAN $@"; \
$(gen_man) --output="$@" "guix $*";; \
*$<*) $(AM_V_HELP2MAN:@%=%)$(gen_man) --output="$@" "guix $*";; \
*) : ;; \
esac