diff options
| author | apb <apb@NetBSD.org> | 2014-06-16 09:06:26 +0000 |
|---|---|---|
| committer | apb <apb@NetBSD.org> | 2014-06-16 09:06:26 +0000 |
| commit | 0c578c721fbbbc23dd9ecedb053d4a322a7de1c5 (patch) | |
| tree | 7bbb9780bbcd52d5890f7f070b13ff8ff556453d /Makefile | |
| parent | 7c883ccae6e7feaea2adb97c8c211b9121a55f88 (diff) | |
Run "postinstall fix obsolete_stand" just before checkflist,
if we are building with DESTDIR != /
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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}" |
