>From 70bf44033736937e9b804930e7f23721e369d6df Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 21 Jul 2024 21:22:28 +0200 Subject: [PATCH] build: Generate programs' man pages in the source directory, per GCS * man/Makefile.am ($(dist_man1_MANS)): Generate the *.1 files in $(srcdir), not in the build dir. --- man/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man/Makefile.am b/man/Makefile.am index 8b1ea20..00ba124 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -34,7 +34,8 @@ $(dist_man1_MANS): $(SRC_VERSION_C) help2man $(AM_V_GEN)base=`expr $@ : '\(.*\).1'` \ && test -x $(bin_dir)/$$base \ && (echo '[NAME]' \ - && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' $S/$$base.c) \ + && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' $S/$$base.c) \ | PATH="$(bin_dir)$(PATH_SEPARATOR)$$PATH" \ $(srcdir)/help2man -i - -i $(srcdir)/$$base.x \ - -S '$(PACKAGE) $(VERSION)' $$base > $@-t && mv $@-t $@ + -S '$(PACKAGE) $(VERSION)' $$base > $$base.1-t \ + && mv $$base.1-t $(srcdir)/$$base.1 -- 2.34.1