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.
This commit is contained in:
Jim Meyering 2004-05-13 07:03:52 +00:00
parent 50f956a0b0
commit 2b4882c233

View File

@ -5,10 +5,7 @@
# current locale considers to be equal.
ASSORT = LC_ALL=C sort
all_programs = \
echo 'spy:;@echo $$(all_programs)' \
| MAKEFLAGS= $(MAKE) -s -C ../src -f Makefile -f - spy \
| ../src/tr -s ' ' '\n' | $(ASSORT) -u
all_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s all_programs.list)
TESTS = help-version
TESTS_ENVIRONMENT = \