From: Eric Blake Date: Sun, 3 May 2009 13:39:00 +0000 (+0200) Subject: maint: make the new no-submodule-changes rule VPATH-safe X-Git-Tag: v0.1~5940 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c90c5cc82c3b0c07b2dff0f135be74bbb97e0b60;p=gnulib.git maint: make the new no-submodule-changes rule VPATH-safe * top/maint.mk (no-submodule-changes): Don't assume a srcdir build. --- diff --git a/ChangeLog b/ChangeLog index fca76c17e..4a212e328 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-04 Eric Blake + + 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 Bruno Haible diff --git a/top/maint.mk b/top/maint.mk index f34f6bf04..fb505181b 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -678,8 +678,9 @@ endef .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:'; \