diff options
author | jlam <jlam@pkgsrc.org> | 2006-01-21 21:32:51 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-01-21 21:32:51 +0000 |
commit | 47c92ad16cd079bdb9f0480302c589e0069897ae (patch) | |
tree | 51bcf2d2c5bd387b984ec028d48b1b60fcc5abd3 | |
parent | 7c9907a43b3f74e4c4e9ffc95e765a0daa06ac85 (diff) | |
download | pkgsrc-47c92ad16cd079bdb9f0480302c589e0069897ae.tar.gz |
Don't write ${FOO:Mbar} == "bar", when !empty(FOO:Mbar) will suffice.
In this case, "FOO" is "INTERACTIVE_STAGE".
-rw-r--r-- | mk/bsd.pkg.extract.mk | 4 | ||||
-rw-r--r-- | mk/bsd.pkg.mk | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/mk/bsd.pkg.extract.mk b/mk/bsd.pkg.extract.mk index 885458e79a0..7fef162b569 100644 --- a/mk/bsd.pkg.extract.mk +++ b/mk/bsd.pkg.extract.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.extract.mk,v 1.18 2006/01/21 19:39:22 jlam Exp $ +# $NetBSD: bsd.pkg.extract.mk,v 1.19 2006/01/21 21:32:51 jlam Exp $ # # This Makefile fragment is included to bsd.pkg.mk and defines the # relevant variables and targets for the "extract" phase. @@ -181,7 +181,7 @@ release-extract-lock: ${_RELEASE_LOCK} ${_EXTRACT_COOKIE}: -.if ${INTERACTIVE_STAGE:Mextract} == "extract" && defined(BATCH) +.if !empty(INTERACTIVE_STAGE:Mextract) && defined(BATCH) @${ECHO} "*** The extract stage of this package requires user interaction" @${ECHO} "*** Please extract manually with \"cd ${PKGDIR} && ${MAKE} extract\"" @${TOUCH} ${_INTERACTIVE_COOKIE} diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 07bf4601dc5..27e5a3b5a68 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1796 2006/01/21 10:10:42 rillig Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1797 2006/01/21 21:32:51 jlam Exp $ # # This file is in the public domain. # @@ -1269,7 +1269,7 @@ do-fetch: . if !empty(_ALLFILES) ${_PKG_SILENT}${_PKG_DEBUG} \ ${TEST} -d ${_DISTDIR} || ${MKDIR} ${_DISTDIR} -. if ${INTERACTIVE_STAGE:Mfetch} == "fetch" && defined(BATCH) +. if !empty(INTERACTIVE_STAGE:Mfetch) && defined(BATCH) ${_PKG_SILENT}${_PKG_DEBUG} \ ${MAKE} ${MAKEFLAGS} batch-check-distfiles . else @@ -2147,7 +2147,7 @@ PKG_ERROR_MSG.configure+= \ " * It may be removed in the next branch unless fixed." .endif ${_CONFIGURE_COOKIE}: -.if ${INTERACTIVE_STAGE:Mconfigure} == "configure" && defined(BATCH) +.if !empty(INTERACTIVE_STAGE:Mconfigure) && defined(BATCH) @${ECHO} "*** The configuration stage of this package requires user interaction" @${ECHO} "*** Please configure manually with \"cd ${PKGDIR} && ${MAKE} configure\"" @${TOUCH} ${_INTERACTIVE_COOKIE} @@ -2170,7 +2170,7 @@ PKG_ERROR_MSG.build+= \ " * It may be removed in the next branch unless fixed." .endif ${_BUILD_COOKIE}: -.if ${INTERACTIVE_STAGE:Mbuild} == "build" && defined(BATCH) +.if !empty(INTERACTIVE_STAGE:Mbuild) && defined(BATCH) @${ECHO} "*** The build stage of this package requires user interaction" @${ECHO} "*** Please build manually with \"cd ${PKGDIR} && ${MAKE} build\"" @${TOUCH} ${_INTERACTIVE_COOKIE} @@ -2183,7 +2183,7 @@ ${_TEST_COOKIE}: ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-test PKG_PHASE=test ${_INSTALL_COOKIE}: -.if ${INTERACTIVE_STAGE:Minstall} == "install" && defined(BATCH) +.if !empty(INTERACTIVE_STAGE:Minstall) && defined(BATCH) @${ECHO} "*** The installation stage of this package requires user interaction" @${ECHO} "*** Please install manually with \"cd ${PKGDIR} && ${MAKE} install\"" @${TOUCH} ${_INTERACTIVE_COOKIE} |