From: James Youngman Date: Tue, 19 Feb 2008 12:27:39 +0000 (+0100) Subject: Fix non-srcdir "make distcheck" failure. X-Git-Tag: v6.11~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4242d4f5c4f32374b684882a74e1b773ad01b1d6;p=thirdparty%2Fcoreutils.git Fix non-srcdir "make distcheck" failure. * Makefile.am (check-ls-dircolors): Look for sources under $(srcdir), not under ".". --- diff --git a/Makefile.am b/Makefile.am index fcf5cfaf7e..67f493484f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -108,10 +108,12 @@ THANKS-to-translators: po/LINGUAS THANKStt.in # remain in sync. .PHONY: check-ls-dircolors check-ls-dircolors: - dc=$$(sed -n '/static.*ls_codes\[/,/};'/p src/dircolors.c \ - |sed -n '/^ *"/p'|tr , '\n'|sed 's/^ *//' \ - |sed -n 's/^"\(..\)"/\1/p'|sort -u); \ - ls=$$(sed -n '/static.*indicator_name\[/,/};'/p src/ls.c \ - |sed -n '/^ *"/p'|tr , '\n'|sed 's/^ *//' \ - |sed -n 's/^"\(..\)"/\1/p'|sort -u); \ + dc=$$(sed -n '/static.*ls_codes\[/,/};'/p \ + $(srcdir)/src/dircolors.c \ + |sed -n '/^ *"/p'|tr , '\n'|sed 's/^ *//' \ + |sed -n 's/^"\(..\)"/\1/p'|sort -u); \ + ls=$$(sed -n '/static.*indicator_name\[/,/};'/\p \ + $(srcdir)/src/ls.c \ + |sed -n '/^ *"/p'|tr , '\n'|sed 's/^ *//' \ + |sed -n 's/^"\(..\)"/\1/p'|sort -u); \ test "$$dc" = "$$ls"