diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-25 16:31:17 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-26 13:35:41 +0200 |
commit | 2dde586a7605f973accb99d41990804fdd028bab (patch) | |
tree | 0b391f1e56c5b21ca25dcdccc06ca174b22431b5 /Makefile.am | |
parent | 42d9439da93eb64ef3bb96e012cf4ab88f7f63ac (diff) | |
download | automake-2dde586a7605f973accb99d41990804fdd028bab.tar.gz |
build: auxiliary testsuite files/scripts built by "make all"
This will allow the developers to run a tests case by hand out of
a newly extracted tarball simply doing:
$ ./configure && make
$ ./runtest t/the-test-case.sh
while before this change one has to resort to:
$ ./configure && make && make check TESTS=
$ ./runtest t/the-test-case.sh
or, with some non-GNU makes, even:
$ ./configure && make && make check TESTS= AM_MAKEFLAGS="TESTS="
$ ./runtest t/the-test-case.sh
This come very handy sometimes, especially when doing one-shot
debugging. Admittedly not a big deal, but one less friction in
the build system is always nice.
* Makefile.am (check_SCRIPTS, dist_check_DATA, nodist_check_DATA):
Move their content to ...
(noinst_SCRIPTS, dist_noinst_DATA, nodist_noinst_DATA): ... these
variables.
Adjust comments.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index a472ff4e4..6b6e9386f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -379,13 +379,19 @@ EXTRA_DIST += gen-testsuite-part $(generated_TESTS): $(srcdir)/gen-testsuite-part $(srcdir)/t/testsuite-part.am: $(srcdir)/gen-testsuite-part Makefile.am -# Static dependencies valid for each test case. -check_SCRIPTS = t/wrap/aclocal-$(APIVERSION) t/wrap/automake-$(APIVERSION) -dist_check_DATA = \ - t/ax/test-init.sh \ - t/ax/plain-functions.sh \ +# Static dependencies valid for each test case (also further +# extended later). Note that use 'noinst_' rather than 'check_' +# as the prefix, because we really want them to be built by +# "make all". This makes it easier to run the test cases by +# hand after having simply configured and built the package. + +nodist_noinst_SCRIPTS = \ + t/wrap/aclocal-$(APIVERSION) \ + t/wrap/automake-$(APIVERSION) +dist_noinst_DATA = \ + t/ax/test-init.sh \ + t/ax/plain-functions.sh \ t/ax/tap-functions.sh -nodist_check_DATA = defs-static # Few more static dependencies. t/distcheck-missing-m4.log: t/ax/distcheck-hook-m4.am @@ -399,6 +405,7 @@ defs-static: defs-static.in Makefile $(generated_file_finalize) EXTRA_DIST += defs-static.in CLEANFILES += defs-static +nodist_noinst_DATA = defs-static runtest: runtest.in Makefile $(AM_V_at)rm -f $@ $@-t @@ -551,7 +558,7 @@ amhello_configury = \ missing \ src/Makefile.in -dist_noinst_DATA = $(amhello_sources) +dist_noinst_DATA += $(amhello_sources) dist_doc_DATA = $(srcdir)/doc/amhello-1.0.tar.gz # We depend on configure.ac so that we regenerate the tarball |