summaryrefslogtreecommitdiff
path: root/dist-check.mk
diff options
context:
space:
mode:
Diffstat (limited to 'dist-check.mk')
-rw-r--r--dist-check.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/dist-check.mk b/dist-check.mk
index 6706ea038..533b7f921 100644
--- a/dist-check.mk
+++ b/dist-check.mk
@@ -9,10 +9,7 @@ tmpdir = $(abs_top_builddir)/tests/torture
t=$(tmpdir)/$(PACKAGE)/test
pfx=$(t)/i
-built_programs = \
- $$(echo 'spy:;@echo $$(bin_PROGRAMS)' \
- | MAKEFLAGS= $(MAKE) -s -C src -f Makefile -f - spy \
- | fmt -1 | sed 's,$(EXEEXT)$$,,' | sort -u)
+built_programs := $(sort $(patsubst src/%$(EXEEXT),%,$(bin_PROGRAMS)))
# More than once, tainted build and source directory names would
# have caused at least one "make check" test to apply "chmod 700"