Source-Changes-HG archive

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

[src/trunk]: src Makefile: fix location of postinstall program for MAKEVERBOS...



details:   https://anonhg.NetBSD.org/src/rev/528980db00b1
branches:  trunk
changeset: 364375:528980db00b1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Mar 19 14:35:13 2022 +0000

description:
Makefile: fix location of postinstall program for MAKEVERBOSE > 2

If MAKEVERBOSE > 2, each shell command from a make target is echoed.
This resulted in two additional words ending up in the variable
_POSTINSTALL.  Noticed by Brad Harder.

Before:
$ make -v _POSTINSTALL MAKEVERBOSE=3
echo .../usr.sbin/postinstall .../usr.sbin/postinstall/postinstall ...

After:
$ make -v _POSTINSTALL MAKEVERBOSE=3
.../usr.sbin/postinstall/postinstall ...

diffstat:

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

diffs (18 lines):

diff -r f499d983bf25 -r 528980db00b1 Makefile
--- a/Makefile  Sat Mar 19 14:35:08 2022 +0000
+++ b/Makefile  Sat Mar 19 14:35:13 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.333 2020/10/29 20:26:24 uwe Exp $
+#      $NetBSD: Makefile,v 1.334 2022/03/19 14:35:13 rillig Exp $
 
 #
 # This is the top-level makefile for building NetBSD. For an outline of
@@ -174,7 +174,7 @@
 .endif
 
 _POSTINSTALL=  ${:!cd ${.CURDIR}/usr.sbin/postinstall && \
-                       ${MAKE} print-objdir!}/postinstall  \
+                       ${MAKE} -v .OBJDIR!}/postinstall  \
                -m ${MACHINE} -a ${MACHINE_ARCH}
 _POSTINSTALL_ENV= \
        AWK=${TOOL_AWK:Q}               \



Home | Main Index | Thread Index | Old Index