summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-07-10 22:37:48 +0200
committerJim Meyering <jim@meyering.net>2007-07-10 23:39:05 +0200
commit89dc0194511bdf7709ad5fc63acd079d6fa62b75 (patch)
tree78ac3d864c9cb8546a3d704254c2daa96a0e813d /src
parent471d33582e48a9f9527e231c9bbc575ee9b43e45 (diff)
downloadcoreutils-89dc0194511bdf7709ad5fc63acd079d6fa62b75.tar.xz
Skip "arch" test if it's not built.
* tests/misc/Makefile.am (built_programs): Define. (TESTS_ENVIRONMENT): Add $(built_programs), for... * tests/misc/arch: ...this: skip the test if arch is not built. * src/Makefile.am (built_programs.list): New rule. * tests/Makefile.am (built_programs): Rename from all_programs. (TESTS_ENVIRONMENT): Use built_programs, not all_programs. * tests/help-version: Likewise. * NEWS: Mention that using --enable-no-install-program=X may cause "make check" to fail. Signed-off-by: Jim Meyering <jim@meyering.net>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c01806e08..dc860f5e4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -286,6 +286,10 @@ all_programs = \
$(bin_SCRIPTS) \
$(EXTRA_PROGRAMS)
+built_programs.list:
+ @echo $(bin_PROGRAMS) $(bin_SCRIPTS) | tr ' ' '\n' \
+ | sed -e 's,$(EXEEXT)$$,,' | $(ASSORT) -u
+
all_programs.list:
@echo $(all_programs) | tr ' ' '\n' | sed -e 's,$(EXEEXT)$$,,' \
| $(ASSORT) -u