summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-08-17 07:49:10 +0000
committerJim Meyering <jim@meyering.net>2003-08-17 07:49:10 +0000
commit1ead947b798b757c98b29ec188872ec0c1fff916 (patch)
tree406d21f456f76227e41a2a3059a5334c162ee4a6 /man
parentd69f5304abe9f42a6279fcae7b9c8046fdcd7b88 (diff)
downloadcoreutils-1ead947b798b757c98b29ec188872ec0c1fff916.tar.xz
.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/man/Makefile.in b/man/Makefile.in
index ef1d2dd64..552e615ab 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -481,13 +481,15 @@ yes.1: $(common_dep) $(srcdir)/yes.x ../src/yes.c
# That is necessary to avoid failures for programs that are also shell built-in
# functions like echo, false, printf, pwd.
.x.1:
+ @rm -f $@
@echo "Updating man page $@"; \
mkdir $t; \
(cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
- --output=$@ $t/$*$(EXEEXT); \
- rm -rf $t
+ --output=$@ $t/$*$(EXEEXT)
+ @chmod a-w $@
+ @rm -rf $t
check-local: check-x-vs-1 check-programs-vs-x