]> err.no Git - util-linux/commitdiff
libmount: don't compile tests by default
authorKarel Zak <kzak@redhat.com>
Tue, 25 Jan 2011 15:27:16 +0000 (16:27 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Jan 2011 15:27:16 +0000 (16:27 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/Makefile.am
shlibs/mount/src/Makefile.am

index b0701cb7b11ef9778c5ad6af7b98e6039057ad26..1c114388aa0d26e4b802d99fc526caf90b67f155 100644 (file)
@@ -55,7 +55,7 @@ CLEANFILES = $(tests)
 
 tests: all $(tests)
 test_%: %.c
-       $(COMPILE) -DTEST_PROGRAM $< .libs/libblkid.a -o $@ $(UUID_LIBS)
+       $(AM_V_CC)$(COMPILE) -DTEST_PROGRAM $< .libs/libblkid.a -o $@ $(UUID_LIBS)
 
 
 # move lib from $(usrlib_execdir) to $(libdir) if needed
index 02c12b0943331fac7da6a8f11019debda4045eb0..8fedd412738b8e389712cba6e648322d82780f3e 100644 (file)
@@ -39,8 +39,6 @@ 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 \
@@ -60,8 +58,8 @@ uninstall-hook:
 tests = test_version test_cache test_optstr test_lock \
                  test_tab test_utils test_tab_update test_context
 
-tests: $(tests)
-test_%: %.c libmount.la
+tests: all $(tests)
+test_%: %.c
        $(AM_V_CC)$(COMPILE) -DTEST_PROGRAM $< .libs/libmount.a \
                $(ul_libblkid_builddir)/.libs/libblkid.a -o $@ \
                $(TESTS_LIBS)