Skip to content

Commit

Permalink
Wrap EXTRACT_COOKIE like all others that could have an interactive step
Browse files Browse the repository at this point in the history
and check for it if doing a batch build
  • Loading branch information
jmc committed May 11, 2003
1 parent 73a82f7 commit a2a3feb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mk/bsd.pkg.mk
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a2a3feb

Please sign in to comment.