# otherwise we may get into trouble with distinct strings that the
# current locale considers to be equal.
ASSORT = LC_ALL=C sort
-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 '\['
all: all-am
.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 \
# Tell automake to exempt then from that installcheck test.
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = false test
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
-all_programs = \
- $(bin_PROGRAMS) \
- $(bin_SCRIPTS) \
- $(EXTRA_PROGRAMS)
-
# Sort in traditional ASCII order, regardless of the current locale;
# otherwise we may get into trouble with distinct strings that the
# current locale considers to be equal.
ASSORT = LC_ALL=C sort
+all_programs = \
+ $(bin_PROGRAMS) \
+ $(bin_SCRIPTS) \
+ $(EXTRA_PROGRAMS)
+
pm = progs-makefile
pr = progs-readme
$(PERL) $(srcdir)/extract-magic $(srcdir)/stat.c > $@t
@chmod a-w $@t
mv $@t $@
+
+all_programs.list:
+ @echo $(all_programs) | tr ' ' '\n' | $(ASSORT)
# Ensure that the list of programs in README matches the list
# of programs we can build.
check: check-README check-misc
# otherwise we may get into trouble with distinct strings that the
# 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 = \
all_programs="`$(all_programs)`" \
target_alias = @target_alias@
AUTOMAKE_OPTIONS = 1.1 gnits
TESTS = \
+ unread3 \
no-give-up \
dir-no-w \
fail-2eperm \