summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-09-01 01:46:40 +0200
committerJim Meyering <meyering@redhat.com>2012-09-01 21:25:13 +0200
commit5e60e0d37e541d9f2311c7b60da61ba66a69f9e4 (patch)
treefc028f51dc5a7444e679630b8b60ac47cc5b3abc /tests
parent4f2e62ba9fd482375fdc085de71a5c947741d140 (diff)
downloadcoreutils-5e60e0d37e541d9f2311c7b60da61ba66a69f9e4.tar.xz
build: don't use recursive make to build the 'src' subdirectory
* Makefile.am (SUBDIRS): Remove 'src'. Ensure '.' is listed before 'tests' and 'gnulib-tests'. (dist-hook): Adjust: we must now tweak the top-level Makefile.in in $(distdir), not the one in the 'src/' subdir (which is gone). (include): The '$(top_srcdir)/src/local.mk' file. * build-aux/gen-lists-of-programs.sh: Adjust the generation of the automake input fragment. * tests/Makefile.am (.built-programs): Adjust. * cfg.mk (all_programs): Remove this convenience rule; it's no longer needed, now that we can rely directly on the contents of $(all_programs). (sc_option_desc_uppercase, check-programs-vs-x:): Adjust lists of prerequisites accordingly. (all-progs-but-lbracket): Simplify definition accordingly. * configure.ac ($OPTIONAL_BIN_PROGS): Adjust definition. ($OPTIONAL_PKGLIB_PROGS): Likewise. ($NO_INSTALL_PROGS_DEFAULT): Tweak definition, for consistency. (AC_CONFIG_FILES): Remove 'src/Makefile'. * src/Makefile.am: Rename ... * src/local.mk: ... like this, with a lot of adjustments. In addition ... (all_programs): ... remove this now-unneeded convenience target.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d8dee57fe..54f1e08f8 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -40,10 +40,10 @@ check: vc_exe_in_TESTS
CLEANFILES =
CLEANFILES += .built-programs
check_DATA = .built-programs
-.built-programs: $(top_srcdir)/src/Makefile.am
- $(AM_V_GEN)(cd $(top_builddir)/src \
+.built-programs: $(top_srcdir)/Makefile.am
+ $(AM_V_GEN)(cd $(top_builddir) \
&& MAKEFLAGS= $(MAKE) -s built_programs.list) \
- > $@-t && mv $@-t $@
+ | sed s,^src/,, > $@-t && mv $@-t $@
TEST_EXTENSIONS = .sh .pl .xpl