diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-11-22 22:27:51 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-11-23 12:17:03 +0100 |
commit | fb82445ea07b3d8c7b76f2ea0df204ef7b7f36f3 (patch) | |
tree | efb04ed6105fd123e16cdac15a0d92dce5758745 | |
parent | d738921c7f8044fea27351ac309b20f074d63109 (diff) | |
download | coreutils-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.mk | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } || : |