summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-13 07:04:58 +0000
committerJim Meyering <jim@meyering.net>2004-05-13 07:04:58 +0000
commit23006caee3fb578761a4dc193e80c33914ff78a4 (patch)
tree3ac23d9a88076cd7930945665ed2eb9e7f202897 /man
parent2b4882c2338a74d639c6a3fdb34dfc94f95d9d59 (diff)
downloadcoreutils-23006caee3fb578761a4dc193e80c33914ff78a4.tar.xz
Don't assume that "make -C" works; Solaris "make" doesn't have -C.
* src/Makefile.am (all_programs.list): New rule, copied from man/Makefile.am and tests/Makefile.am, except that we use the system tr rather than ./tr and we don't use tr -s. * tests/Makefile.am (all_programs): Use it. * man/Makefile.am (all_programs): Likewise. Renamed from programs, for consistency. All uses changed.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am9
1 files changed, 4 insertions, 5 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index ac0d36329..c6850df2e 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -154,15 +154,14 @@ check-x-vs-1:
| $(ASSORT) | diff - $$t || { rm $$t; exit 1; }; \
rm $$t
-programs = \
- echo 'spy:;@echo $$(all_programs)' \
- | MAKEFLAGS= $(MAKE) -s -C ../src -f Makefile -f - spy \
- | ../src/tr -s ' ' '\n' | $(ASSORT) -u | grep -v '\['
+all_programs = \
+ (cd ../src && MAKEFLAGS= $(MAKE) -s all_programs.list) \
+ | grep -v '\['
.PHONY: check-programs-vs-x
check-programs-vs-x:
status=0; \
- for p in dummy `$(programs)`; do \
+ for p in dummy `$(all_programs)`; do \
test $$p = dummy && continue; \
test $$p = ginstall && p=install || : ; \
test -f $(srcdir)/$$p.x \