Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk in cleanx11man, support "MAN defaults to ${PROG}.1"



details:   https://anonhg.NetBSD.org/src/rev/f2a1dff26176
branches:  trunk
changeset: 551899:f2a1dff26176
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Sep 13 20:39:45 2003 +0000

description:
in cleanx11man, support "MAN defaults to ${PROG}.1"

diffstat:

 share/mk/bsd.x11.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 052472af4d59 -r f2a1dff26176 share/mk/bsd.x11.mk
--- a/share/mk/bsd.x11.mk       Sat Sep 13 20:17:57 2003 +0000
+++ b/share/mk/bsd.x11.mk       Sat Sep 13 20:39:45 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.x11.mk,v 1.3 2003/09/13 20:10:44 lukem Exp $
+#      $NetBSD: bsd.x11.mk,v 1.4 2003/09/13 20:39:45 lukem Exp $
 
 .include <bsd.init.mk>
 
@@ -88,10 +88,10 @@
 #
 # .man page handling
 #
-.if (${MAN:U} != "" && ${MKMAN} != "no")                       # {
+.if (${MKMAN} != "no" && (${MAN:U} != "" || ${PROG:U} != ""))  # {
 cleandir: cleanx11man
 cleanx11man:
-       rm -f ${MAN}
+       rm -f ${MAN:U${PROG:D${PROG.1}}}
 .endif                                                         # }
 
 .SUFFIXES:     .man .1 .3 .7



Home | Main Index | Thread Index | Old Index