From: Karel Zak Date: Tue, 25 Jan 2011 10:19:00 +0000 (+0100) Subject: libmount: compile tests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4f61d8f72634dd37d0ea27af804922d4d9db3f1;p=util-linux libmount: compile tests Signed-off-by: Karel Zak --- 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)