# HG changeset patch # User Eric Blake # Date 1241357940 -7200 # Node ID 45cc3a1714a5c3286963a6c97ac25b75badf3710 # Parent 26e63e0892320437fd30a98655bc94fd2ceaf18d maint: make the new no-submodule-changes rule VPATH-safe * top/maint.mk (no-submodule-changes): Don't assume a srcdir build. diff -r 26e63e089232 -r 45cc3a1714a5 ChangeLog --- a/ChangeLog Mon May 04 03:30:54 2009 +0200 +++ b/ChangeLog Sun May 03 15:39:00 2009 +0200 @@ -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 -r 26e63e089232 -r 45cc3a1714a5 top/maint.mk --- a/top/maint.mk Mon May 04 03:30:54 2009 +0200 +++ b/top/maint.mk Sun May 03 15:39:00 2009 +0200 @@ -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:'; \