Source-Changes-HG archive

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

[src/trunk]: src Add a new target (infodir-meta:) that synthesizes the share/...



details:   https://anonhg.NetBSD.org/src/rev/0658fe89d129
branches:  trunk
changeset: 518115:0658fe89d129
user:      perry <perry%NetBSD.org@localhost>
date:      Sat Nov 24 21:53:16 2001 +0000

description:
Add a new target (infodir-meta:) that synthesizes the share/info/dir
file's metadata if UNPRIVED and MKINFO != no. Make afterinstall depend
on it as well as whatis.db.
XXX I wish there was a more rational place to synthesize the metadata,
but I can't think of one. The share/info/dir file is built by all the
world's install-info executions.

diffstat:

 Makefile |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 06b3e201006e -r 0658fe89d129 Makefile
--- a/Makefile  Sat Nov 24 21:41:12 2001 +0000
+++ b/Makefile  Sat Nov 24 21:53:16 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.158 2001/11/20 17:05:02 tv Exp $
+#      $NetBSD: Makefile,v 1.159 2001/11/24 21:53:16 perry Exp $
 
 # This is the top-level makefile for building NetBSD. For an outline of
 # how to build a snapshot or release, as well as other release engineering
@@ -94,12 +94,21 @@
        @(cd ${.CURDIR}/regress && ${MAKE} regress)
 .endif
 
+whatis.db:
 .if ${MKMAN} != "no"
-afterinstall: whatis.db
-whatis.db:
        (cd ${.CURDIR}/share/man && ${MAKE} makedb)
 .endif
 
+# XXX I wish there was a more rational place to do this, but I can't
+# think of one. There is no one place the info/dir file gets generated.
+infodir-meta:
+.if defined(UNPRIVED) && (${MKINFO} != "no")
+       echo "${DESTDIR}/usr/share/info/dir type=file mode=0644 uname=root gname=wheel" | \
+               sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+.endif
+
+afterinstall: whatis.db infodir-meta
+
 # Targets (in order!) called by "make build".
 
 BUILDTARGETS+= check-tools



Home | Main Index | Thread Index | Old Index