]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: fix build_programs definition not to use "make -C src ..."
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 1 Sep 2012 10:15:59 +0000 (12:15 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 1 Sep 2012 19:28:13 +0000 (21:28 +0200)
* 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.

dist-check.mk

index 6706ea0387db3904ec06afdc83c55ce9f90c3a16..533b7f92135a9d2970ab72974773495b826a5670 100644 (file)
@@ -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"