Source-Changes-HG archive

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

[src/trunk]: src/share/mk Honor MANSUBDIR when installing md html pages.



details:   https://anonhg.NetBSD.org/src/rev/5c977773af8a
branches:  trunk
changeset: 521849:5c977773af8a
user:      ross <ross%NetBSD.org@localhost>
date:      Thu Feb 07 01:56:02 2002 +0000

description:
Honor MANSUBDIR when installing md html pages.

diffstat:

 share/mk/bsd.man.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 68845086a0d2 -r 5c977773af8a share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk       Thu Feb 07 01:32:19 2002 +0000
+++ b/share/mk/bsd.man.mk       Thu Feb 07 01:56:02 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.man.mk,v 1.76 2002/02/07 00:52:23 ross Exp $
+#      $NetBSD: bsd.man.mk,v 1.77 2002/02/07 01:56:02 ross Exp $
 #      @(#)bsd.man.mk  8.1 (Berkeley) 6/8/93
 
 .include <bsd.init.mk>
@@ -159,7 +159,8 @@
        ${GROFF_HTML} ${.IMPSRC} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
 
 .for F in ${HTMLPAGES:O:u}
-_F:=           ${HTMLDIR}/${F:T:E}/${F:R}.html         # installed path
+# construct installed path
+_F:=           ${HTMLDIR}/${F:T:E}${MANSUBDIR}/${F:R:S-/index$-/x&-}.html
 ${_F}:         ${F} __installpage                      # install rule
 htmlpages::    ${_F}
 .PRECIOUS:     ${_F}                                   # keep if install fails



Home | Main Index | Thread Index | Old Index