]> err.no Git - util-linux/commitdiff
libmount: compile tests
authorKarel Zak <kzak@redhat.com>
Tue, 25 Jan 2011 10:19:00 +0000 (11:19 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Jan 2011 10:19:00 +0000 (11:19 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/mount/src/Makefile.am

index daf43c5056ced4852bcbaf1dc209b1a5b5b3d30a..02c12b0943331fac7da6a8f11019debda4045eb0 100644 (file)
@@ -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)