From f4f61d8f72634dd37d0ea27af804922d4d9db3f1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 25 Jan 2011 11:19:00 +0100 Subject: [PATCH] libmount: compile tests Signed-off-by: Karel Zak --- shlibs/mount/src/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shlibs/mount/src/Makefile.am b/shlibs/mount/src/Makefile.am index daf43c50..02c12b09 100644 --- a/shlibs/mount/src/Makefile.am +++ b/shlibs/mount/src/Makefile.am @@ -39,6 +39,8 @@ endif EXTRA_DIST = libmount.sym libmount.h.in CLEANFILES = $(tests) +all: tests + # move lib from $(usrlib_execdir) to $(libdir) if needed install-exec-hook: if test "$(usrlib_execdir)" != "$(libdir)"; then \ @@ -58,9 +60,9 @@ uninstall-hook: tests = test_version test_cache test_optstr test_lock \ test_tab test_utils test_tab_update test_context -tests: all $(tests) -test_%: %.c all - $(COMPILE) -DTEST_PROGRAM $< .libs/libmount.a \ +tests: $(tests) +test_%: %.c libmount.la + $(AM_V_CC)$(COMPILE) -DTEST_PROGRAM $< .libs/libmount.a \ $(ul_libblkid_builddir)/.libs/libblkid.a -o $@ \ $(TESTS_LIBS) -- 2.39.5