changeset 11547:3f43faadaf9d

maint: make the new no-submodule-changes rule VPATH-safe * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
author Eric Blake <ebb9@byu.net>
date Sun, 03 May 2009 15:39:00 +0200
parents 03ef9ae804c9
children ba7a8ed1c2ac
files ChangeLog top/maint.mk
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-04  Eric Blake  <ebb9@byu.net>
+
+	maint: make the new no-submodule-changes rule VPATH-safe
+	* top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
+
 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
             Bruno Haible  <bruno@clisp.org>
 
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -678,8 +678,9 @@
 
 .PHONY: no-submodule-changes
 no-submodule-changes:
-	if test -d .git; then						\
-	  diff=$$(git submodule -q foreach git diff-index --name-only HEAD) \
+	if test -d $(srcdir)/.git; then					\
+	  diff=$$(cd $(srcdir) && git submodule -q foreach		\
+		  git diff-index --name-only HEAD)			\
 	    || exit 1;							\
 	  case $$diff in '') ;;						\
 	    *) echo '$(ME): submodule files are locally modified:';	\