Source-Changes-HG archive

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

[src/trunk]: src In afterinstall, only run postinstall check if DESTDIR == / ...



details:   https://anonhg.NetBSD.org/src/rev/168287802bed
branches:  trunk
changeset: 533011:168287802bed
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 19 00:17:11 2002 +0000

description:
In afterinstall, only run postinstall check if DESTDIR == / (or equivalents).
Fixes [misc/17275] from Gregory McGarry <g.mcgarry%ieee.org@localhost>

diffstat:

 Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 8b206a73e939 -r 168287802bed Makefile
--- a/Makefile  Tue Jun 18 23:46:52 2002 +0000
+++ b/Makefile  Wed Jun 19 00:17:11 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.175 2002/05/07 02:11:07 lukem Exp $
+#      $NetBSD: Makefile,v 1.176 2002/06/19 00:17:11 lukem 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,13 +94,16 @@
        @(cd ${.CURDIR}/regress && ${MAKE} regress)
 .endif
 
-afterinstall: postinstall-check
+afterinstall:
 .if ${MKMAN} != "no"
        (cd ${.CURDIR}/share/man && ${MAKE} makedb)
 .endif
 .if defined(UNPRIVED) && (${MKINFO} != "no")
        (cd ${.CURDIR}/gnu/usr.bin/texinfo/install-info && ${MAKE} infodir-meta)
 .endif
+.if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/"
+       (${MAKE} postinstall-check)
+.endif
 
 postinstall-check:
        @echo "   === Post installation checks ==="



Home | Main Index | Thread Index | Old Index