# List of dependencies for the obvious targets.
my @all;
my @check;
-my @check_tests;
# Keys in this hash table are files and directories to delete. The
# associated value tells when this should happen (MOSTLY_CLEAN,
@all = ();
@check = ();
- @check_tests = ();
%clean_files = ();
%clean_dirs = ();
'ALL-DEPS' => "@all",
'LOCAL-HEADERS' => "@local_headers");
- almost_verbatim ('check-target',
- 'CHECK-TESTS' => "@check_tests");
+ almost_verbatim ('check-target');
}
# Generate helper targets for user recursion, where needed.
# ------------------------
sub handle_tests_dejagnu
{
- push (@check_tests, 'check-DEJAGNU');
$output_rules .= file_contents ('dejagnu', new Automake::Location);
}
if (var ('TESTS'))
{
- push (@check_tests, 'check-TESTS');
almost_verbatim ('color-tests');
if (option 'serial-tests')
{
# ensure all the primary targets are built; then it must build the
# local check dependencies, and finally run the actual tests (as given
# by $(TESTS), by DejaGNU, and by the 'check-local' target).
-check-am: all-am
- $(if $(am.test-suite.deps),$(MAKE) $(am.test-suite.deps),@:)
- $(MAKE) %CHECK-TESTS% check-local
+am.test-suite.check-targets = check-DEJAGNU check-TESTS check-local
+.PHONY: $(am.test-suite.check-targets)
+check-am: $(am.test-suite.check-targets)
+$(am.test-suite.check-targets): all-am $(am.test-suite.deps)
check: $(if $(SUBDIRS),check-recursive,check-am)
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 1996-2012 Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# Test for bug where check target doesn't depend on all.
-
-. ./defs || exit 1
-
-cat > Makefile.am << 'END'
-bin_SCRIPTS = derived
-check-local:
- true
-END
-
-$ACLOCAL
-$AUTOMAKE
-
-grep '^check-am:.*all-am' Makefile.in
-grep 'MAKE.*check-local' Makefile.in
cat > Makefile.am <<'END'
@SafeInclude@ ./inc.mk
-$(foreach x,all check installdirs,$(eval $(x)-local:: ; : > main-$(x)))
+$(foreach x,all check installdirs,$(eval $(x)-local: ; : > main-$(x)))
END
cat > inc.mk << 'END'
-all-local check-local installdirs-local:: %-local:
+all-local check-local installdirs-local: %-local: %-incl
+all-incl check-incl installdirs-incl: %-incl:
: > incl-$*
END
cat > GNUmakefile << 'END'
include ./Makefile
-all-local check-local installdirs-local:: %-local:
+all-local check-local installdirs-local: %-local: %-wrap
+all-wrap check-wrap installdirs-wrap: %-wrap:
: > wrap-$*
END