diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-09-01 12:15:59 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-01 21:28:13 +0200 |
commit | c9cd19b3e8c4283776fe9d66ec76e32afdec6b52 (patch) | |
tree | 10ca1d94885fe9f37595c93d0240d8cde4529518 | |
parent | 6a6257a96a7742d3f3af5d15300b7fccc599e34d (diff) | |
download | coreutils-c9cd19b3e8c4283776fe9d66ec76e32afdec6b52.tar.xz |
maint: fix build_programs definition not to use "make -C src ..."
* dist-check.mk (built_programs): There's no need to issue recursive
make calls in 'src/' to define this (in fact, that works no longer
now that 'src/Makefile.am' is gone). Simply define this to the sorted
contents of $(bin_PROGRAMS), with the 'src/' prefix and the $(EXEEXT)
suffix (if any) removed. Reported by Jim Meyering.
-rw-r--r-- | dist-check.mk | 5 |
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" |