summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-08-10 11:03:09 -0600
committerEric Blake <eblake@redhat.com>2010-08-26 16:28:31 -0600
commit8ce8ac9de257312384568cc01d3f53ec6443ac91 (patch)
tree14f656fc7ee7c021298514c9ab373080aec6dd61 /cfg.mk
parent0380e4c98e9d53ae314f5537c5f1a4b891577768 (diff)
downloadcoreutils-8ce8ac9de257312384568cc01d3f53ec6443ac91.tar.xz
maint: avoid a hung 'make syntax-check' in VPATH build
* cfg.mk (sc_system_h_headers): Look for files in correct location.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index dff5de5d9..ae5f819c5 100644
--- 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