From 91c415b938802e52fb98a78ae7757ac6247e8268 Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 7 Sep 2007 15:51:53 +0000 Subject: The WRKDIR and PREFIX can be saved in the log directory when a package doesn't build properly. These options are off by default since they require much disk space. --- mk/bsd.pkg.mk | 4 ++-- mk/pbulk/pbulk-index.mk | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 9b9b3177882..1fd1e225450 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1922 2007/08/18 00:30:21 joerg Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1923 2007/09/07 15:51:53 rillig Exp $ # # This file is in the public domain. # @@ -801,7 +801,7 @@ ${_MAKEVARS_MK.${_phase_}}: ${WRKDIR} ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET} .endfor -.if make(pbulk-index) || make(pbulk-index-item) +.if make(pbulk-index) || make(pbulk-index-item) || make(pbulk-save-wrkdir) .include "${.PARSEDIR}/pbulk/pbulk-index.mk" .endif diff --git a/mk/pbulk/pbulk-index.mk b/mk/pbulk/pbulk-index.mk index e128f13d09a..d6678c00fea 100644 --- a/mk/pbulk/pbulk-index.mk +++ b/mk/pbulk/pbulk-index.mk @@ -1,4 +1,4 @@ -# $NetBSD: pbulk-index.mk,v 1.2 2007/05/16 16:48:12 joerg Exp $ +# $NetBSD: pbulk-index.mk,v 1.3 2007/09/07 15:51:53 rillig Exp $ # This Makefile fragment is included by bsd.pkg.mk and provides all # variables and targets related to the parallel bulk build @@ -99,3 +99,6 @@ pbulk-index-item: .endfor @printf "\n" .endif + +pbulk-save-wrkdir: + ${PAX} -w -z -f ${INTO:Q} ${WRKDIR} -- cgit v1.2.3