summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2016-11-22 22:27:51 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2016-11-23 12:17:03 +0100
commitfb82445ea07b3d8c7b76f2ea0df204ef7b7f36f3 (patch)
treeefb04ed6105fd123e16cdac15a0d92dce5758745
parentd738921c7f8044fea27351ac309b20f074d63109 (diff)
downloadcoreutils-fb82445ea07b3d8c7b76f2ea0df204ef7b7f36f3.tar.xz
maint: fix 'syntax-check' targets for VPATH builds
* cfg.mk (sc_gitignore_missing): Add $(srcdir) to .gitignore filename. (sc_gitignore_redundant): Likewise.
-rw-r--r--cfg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/cfg.mk b/cfg.mk
index 9e4f8a31a..92a41cf5d 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -778,7 +778,7 @@ sc_fs-magic-compare:
# Ensure gnulib generated files are ignored
# TODO: Perhaps augment gnulib-tool to do this in lib/.gitignore?
sc_gitignore_missing:
- @{ sed -n '/^\/lib\/.*\.h$$/{p;p}' .gitignore; \
+ @{ sed -n '/^\/lib\/.*\.h$$/{p;p}' $(srcdir)/.gitignore; \
find lib -name '*.in*' ! -name '*~' ! -name 'sys_*' | \
sed 's|^|/|; s|_\(.*in\.h\)|/\1|; s/\.in//'; } | \
sort | uniq -u | grep . && { echo '$(ME): Add above' \
@@ -786,7 +786,8 @@ sc_gitignore_missing:
# Flag redundant entries in .gitignore
sc_gitignore_redundant:
- @{ grep ^/lib .gitignore; sed 's|^|/lib|' lib/.gitignore; } | \
+ @{ grep ^/lib $(srcdir)/.gitignore; \
+ sed 's|^|/lib|' $(srcdir)/lib/.gitignore; } | \
sort | uniq -d | grep . && { echo '$(ME): Remove above' \
'entries from .gitignore' >&2; exit 1; } || :