tests: build tests only on make check
authorAlexandre Rostovtsev <tetromino@gmail.com>
Mon, 22 Aug 2011 06:49:51 +0000 (02:49 -0400)
committerColin Walters <walters@verbum.org>
Tue, 23 Aug 2011 14:15:29 +0000 (10:15 -0400)
commit3a308bb438246f7d6e87ebe2f6efeb1795fdcd1e
treec8fabd232cb6cdaadd3fcf974e0f3b66629cc148
parent0bc07516cf964d42719844a29907ec20ad433652
tests: build tests only on make check

Use automake's check_ prefix and avoid putting anything nontrivial in
BUILT_SOURCES so that tests are build only on make check.

The dummy -rpath in AM_LDFLAGS in tests/scanner/Makefile.am is needed to
force libtool to build shared libraries for check_LTLIBRARIESS targets
(automake builds check_LTLIBRARIES as static by default); see
http://lists.gnu.org/archive/html/automake/2005-10/msg00107.html

https://bugzilla.gnome.org/show_bug.cgi?id=657066
tests/Makefile.am
tests/repository/Makefile.am
tests/scanner/Makefile.am