diff options
author | jmc <jmc@pkgsrc.org> | 2003-05-11 07:06:23 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2003-05-11 07:06:23 +0000 |
commit | a2a3feb0bb4b9a834e79649348114906e6a8cf34 (patch) | |
tree | 76c89fa961565456e14fac86a9de55d1adf26135 | |
parent | 73a82f7513dfe290233e151e75915265955989ac (diff) | |
download | pkgsrc-a2a3feb0bb4b9a834e79649348114906e6a8cf34.tar.gz |
Wrap EXTRACT_COOKIE like all others that could have an interactive step
and check for it if doing a batch build
-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" |