make-rules/shared-macros.mk
changeset 327 b3a36ee93012
parent 313 e30cc0dc4e8b
child 369 cc8c00719da9
--- a/make-rules/shared-macros.mk	Tue Jun 21 13:39:40 2011 -0700
+++ b/make-rules/shared-macros.mk	Tue Jun 21 13:40:34 2011 -0700
@@ -43,7 +43,18 @@
 # The workspace starts at the mercurial root
 export WS_TOP ?=		$(shell hg root)
 
-export SHELLOPTS = pipefail
+# we want our pkg piplines to fail if there is an error
+# (like if pkgdepend fails in the middle of a pipe), but
+# we don't want the builds or ./configure's failing as well.
+# so we only set pipefail for the publish target and have
+# to reset it for the others since they might be invoked
+# as dependencies of publish.
+export SHELLOPTS
+build:		SHELLOPTS=
+test:		SHELLOPTS=
+install:	SHELLOPTS=
+publish:	SHELLOPTS=pipefail
+
 SHELL=	/bin/bash
 
 CONSOLIDATION =	userland