From 873a22151fd07ce02bb5a01f83a86545f14eb518 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 23 Jul 2003 06:59:26 +0000 Subject: . --- man/Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/Makefile.in b/man/Makefile.in index e24d41aab..513c5c8fa 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -473,13 +473,18 @@ yes.1: $(common_dep) $(srcdir)/yes.x ../src/yes.c # Note the use of $t/$*, rather than just `$*' as in other packages. # That is necessary to avoid failures for programs that are also shell built-in # functions like echo, false, printf, pwd. +# The shenanigans after invoking $(HELP2MAN) are solely to convert the +# two uses of program_name in rm.1's examples with `rm'. +# Otherwise, they would otherwise appear as `rm.td/rm'. .x.1: @echo "Updating man page $@"; \ mkdir $t; \ (cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \ $(HELP2MAN) \ --include=$(srcdir)/$*.x \ - --output=$@ $t/$*$(EXEEXT); \ + --output=$@t $t/$*$(EXEEXT) + sed 's,$t/$*,$*,' $@t > $@t2 + mv $@t2 $@ rm -rf $t check-local: check-x-vs-1 check-programs-vs-x -- cgit v1.2.3-54-g00ecf