Module Name:    src
Committed By:   rillig
Date:           Sat Mar 19 14:35:13 UTC 2022

Modified Files:
        src: Makefile

Log Message:
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 ...


To generate a diff of this commit:
cvs rdiff -u -r1.333 -r1.334 src/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/Makefile
diff -u src/Makefile:1.333 src/Makefile:1.334
--- src/Makefile:1.333	Thu Oct 29 20:26:24 2020
+++ src/Makefile	Sat Mar 19 14:35:13 2022
@@ -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 @@ afterinstall: .PHONY .MAKE
 .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}		\

Reply via email to