(check-x-vs-1): cd to srcdir before running the ls.
authorJim Meyering <jim@meyering.net>
Tue, 9 Jul 2002 07:48:30 +0000 (07:48 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 9 Jul 2002 07:48:30 +0000 (07:48 +0000)
Otherwise, it'd fail in the non-srcdir case.

man/Makefile.am

index 6cca592..8e8a467 100644 (file)
@@ -136,7 +136,7 @@ check-local: check-x-vs-1
 .PHONY: check-x-vs-1
 check-x-vs-1:
        t=ls-files.$$$$;                                                \
-       ls -1 *.x | sed 's/\.x$$//' | sort > $$t;                       \
+       (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | sort > $$t;     \
        echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | sort -u     \
          | diff - $$t || { rm $$t; exit 1; };                          \
        rm $$t