diff options
author | jmc <jmc> | 2003-05-11 07:06:23 +0000 |
---|---|---|
committer | jmc <jmc> | 2003-05-11 07:06:23 +0000 |
commit | e78f70de370581e6cd8166059e100483b54154a8 (patch) | |
tree | 76c89fa961565456e14fac86a9de55d1adf26135 /mk | |
parent | 45dccafbc53faba5feb3403f4b8e72dd1b8715b6 (diff) | |
download | pkgsrc-e78f70de370581e6cd8166059e100483b54154a8.tar.gz |
Wrap EXTRACT_COOKIE like all others that could have an interactive step
and check for it if doing a batch build
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 066b7bd02c4..57cd0febf18 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1179 2003/05/04 02:59:15 rh Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1180 2003/05/11 07:06:23 jmc Exp $ # # This file is in the public domain. # @@ -2663,11 +2663,21 @@ undo-replace: uptodate-pkgtools real-undo-replace .endif ${EXTRACT_COOKIE}: +.if ${INTERACTIVE_STAGE:Mextract} == "extract" && defined(BATCH) + @${ECHO} "*** The extract stage of this package requires user interaction" + @${ECHO} "*** Please extract manually with \"cd ${PKGDIR} && ${MAKE} extract\"" + @${TOUCH} ${INTERACTIVE_COOKIE} + @${FALSE} +.else ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-extract DEPENDS_TARGET=${DEPENDS_TARGET} +.endif + ${PATCH_COOKIE}: ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-patch + ${BUILDLINK_COOKIE}: ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-buildlink + ${CONFIGURE_COOKIE}: .if ${INTERACTIVE_STAGE:Mconfigure} == "configure" && defined(BATCH) @${ECHO} "*** The configuration stage of this package requires user interaction" |