diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-07-30 15:04:21 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-07-30 15:04:21 +0000 |
commit | 210c5d84beffe35194ec5f825a102c2c29612365 (patch) | |
tree | 8fc9251dbf2c55edd3a01b5a769035d70615c87b /mk | |
parent | 7300249f3cd0d9055980ad6d4138fbb50e48e522 (diff) | |
download | pkgsrc-210c5d84beffe35194ec5f825a102c2c29612365.tar.gz |
Modify the build-defs-message target so that it is only printed once, in the
pre-fetch stage. Do this by creating a cookie file inside the WRKDIR.
Also let the user override the target from mk.conf to disable these messages.
This fixes PR pkg/22305 by Robert Elz.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 86e514e7dd7..6fd75f7e8c0 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1225 2003/07/28 20:01:54 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1226 2003/07/30 15:04:21 jmmv Exp $ # # This file is in the public domain. # @@ -34,8 +34,10 @@ MAKE_ENV+= USETOOLS="${USETOOLS}" # Makefile, which are usually not customizable. .PHONY: pre-fetch build-defs-message pre-fetch: build-defs-message -build-defs-message: +.if !target(build-defs-message) +build-defs-message: ${WRKDIR} .if defined(BUILD_DEFS) && !empty(BUILD_DEFS) +.if !exists(${WRKDIR}/.bdm_done) @${ECHO} "==========================================================================" @${ECHO} "The following variables will affect the build process of this package," @${ECHO} "${PKGNAME}. Their current value is shown below:" @@ -53,6 +55,9 @@ build-defs-message: @${ECHO} "You may want to abort the process now with CTRL+C and change their value" @${ECHO} "before continuing. Be sure to run \`${MAKE} clean' after the changes." @${ECHO} "==========================================================================" + @${TOUCH} ${WRKDIR}/.bdm_done +.endif +.endif .endif ##### Some NetBSD platforms permitted the user to set the binary format while |