summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorapb <apb@NetBSD.org>2014-06-16 09:06:26 +0000
committerapb <apb@NetBSD.org>2014-06-16 09:06:26 +0000
commit0c578c721fbbbc23dd9ecedb053d4a322a7de1c5 (patch)
tree7bbb9780bbcd52d5890f7f070b13ff8ff556453d /Makefile
parent7c883ccae6e7feaea2adb97c8c211b9121a55f88 (diff)
Run "postinstall fix obsolete_stand" just before checkflist,
if we are building with DESTDIR != /
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e6bee9cb5d4..3f36931a453 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.308 2014/06/16 09:04:43 apb Exp $
+# $NetBSD: Makefile,v 1.309 2014/06/16 09:06:26 apb Exp $
#
# This is the top-level makefile for building NetBSD. For an outline of
@@ -196,6 +196,11 @@ postinstall-fix-obsolete: .NOTMAIN .PHONY
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete
@echo " ==============================="
+postinstall-fix-obsolete_stand: .NOTMAIN .PHONY
+ @echo " === Removing obsolete files ==="
+ ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete_stand
+ @echo " ==============================="
+
#
# Targets (in order!) called by "make build".
@@ -308,6 +313,7 @@ distribution buildworld: .PHONY .MAKE
${MAKEDIRTARGET} etc distribution INSTALL_DONE=1
.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/"
${MAKEDIRTARGET} . postinstall-fix-obsolete
+ ${MAKEDIRTARGET} . postinstall-fix-obsolete_stand
${MAKEDIRTARGET} distrib/sets checkflist
.endif
@echo "make ${.TARGET} started at: ${START_TIME}"