]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid a hung 'make syntax-check' in VPATH build
authorEric Blake <eblake@redhat.com>
Tue, 10 Aug 2010 17:03:09 +0000 (11:03 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 26 Aug 2010 22:28:31 +0000 (16:28 -0600)
* cfg.mk (sc_system_h_headers): Look for files in correct location.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index dff5de5d9dbd31ce8ce59d8e0535e17854268c73..ae5f819c5109c4e085711152bc04f56133077d9d 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -129,7 +129,7 @@ sc_system_h_headers: .re-list
          trap 'rc=$$?; rm -f .re-list; exit $$rc' 0;                   \
          $(gl_trap_);                                                  \
          grep -nE -f .re-list                                          \
-             $$($(VC_LIST_EXCEPT) | grep '^src/')                      \
+             $$($(VC_LIST_EXCEPT) | grep '^\($(srcdir)/\)\?src/')      \
            && { echo '$(ME): the above are already included via system.h'\
                  1>&2;  exit 1; } || :;                                \
        fi