Fix non-srcdir "make distcheck" failure.
authorJames Youngman <jay@gnu.org>
Tue, 19 Feb 2008 12:27:39 +0000 (13:27 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 19 Feb 2008 12:31:56 +0000 (13:31 +0100)
* Makefile.am (check-ls-dircolors): Look for sources under
$(srcdir), not under ".".

Makefile.am

index fcf5cfaf7e8cb864fc2f6bcb20457ab6bf0a22b4..67f493484f4785056c28f64aa92d07b616d484b2 100644 (file)
@@ -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"