diff top/maint.mk @ 14199:d6780f2a0ebc

maint.mk: make "check" depend on public-submodule-commit by default * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
author Jim Meyering <meyering@redhat.com>
date Thu, 20 Jan 2011 21:49:06 +0100
parents 6699cf2b13db
children 0efdc4f3700e
line wrap: on
line diff
--- a/top/maint.mk	Thu Jan 20 21:44:31 2011 +0100
+++ b/top/maint.mk	Thu Jan 20 21:49:06 2011 +0100
@@ -1134,6 +1134,14 @@
 	else								\
 	  : ;								\
 	fi
+# This rule has a high enough utility/cost ratio that it should be a
+# dependent of "check" by default.  However, some of us do occasionally
+# commit a temporary change that deliberately points to a non-public
+# submodule commit, and want to be able to use rules like "make check".
+# In that case, run e.g., "make check GL_PUBLIC_SUBMODULE_COMMIT="
+# to disable this test.
+GL_PUBLIC_SUBMODULE_COMMIT ?= public-submodule-commit
+check: $(GL_PUBLIC_SUBMODULE_COMMIT)
 
 .PHONY: alpha beta stable
 ALL_RECURSIVE_TARGETS += alpha beta stable