summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2019-06-14 09:12:42 +0000
committermartin <martin@NetBSD.org>2019-06-14 09:12:42 +0000
commitd4cfbe9276a4a26fca1c9e8824ed5b4cbd310166 (patch)
treedcd0a954ed969ccfa2af011fa6aa959572792504 /Makefile
parent797e8bf208b919a86c07831d6df35987dd7130b9 (diff)
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 (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f3a1b297e1f..9046a648d2a 100644
--- a/Makefile
+++ b/Makefile
@@ -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 @@ afterinstall: .PHONY .MAKE
${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} \