Source-Changes-HG archive

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

[src/trunk]: src Use the generated "postinstall" in the objdir for postinstal...



details:   https://anonhg.NetBSD.org/src/rev/e025373e1d58
branches:  trunk
changeset: 452000:e025373e1d58
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jun 14 09:12:42 2019 +0000

description:
Use the generated "postinstall" in the objdir for postinstall-check
and postinstall-fix targets - we do not have a simple postinstall script
in the source tree any more.

diffstat:

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

diffs (19 lines):

diff -r 21881b7d6eaf -r e025373e1d58 Makefile
--- a/Makefile  Fri Jun 14 09:09:12 2019 +0000
+++ b/Makefile  Fri Jun 14 09:12:42 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.326 2019/06/06 14:51:43 martin Exp $
+#      $NetBSD: Makefile,v 1.327 2019/06/14 09:12:42 martin Exp $
 
 #
 # This is the top-level makefile for building NetBSD. For an outline of
@@ -169,7 +169,8 @@
        ${MAKEDIRTARGET} . postinstall-check
 .endif
 
-_POSTINSTALL=  ${.CURDIR}/usr.sbin/postinstall/postinstall \
+_POSTINSTALL=  ${:!cd ${.CURDIR}/usr.sbin/postinstall && \
+                       ${MAKE} print-objdir!}/postinstall  \
                -m ${MACHINE} -a ${MACHINE_ARCH}
 _POSTINSTALL_ENV= \
        AWK=${TOOL_AWK:Q}               \



Home | Main Index | Thread Index | Old Index