From 0719f04d94915861823d1b5156c5e5d02b285cca Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 25 Jan 2011 16:27:16 +0100 Subject: [PATCH] libmount: don't compile tests by default Signed-off-by: Karel Zak --- shlibs/blkid/src/Makefile.am | 2 +- shlibs/mount/src/Makefile.am | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/shlibs/blkid/src/Makefile.am b/shlibs/blkid/src/Makefile.am index b0701cb7..1c114388 100644 --- a/shlibs/blkid/src/Makefile.am +++ b/shlibs/blkid/src/Makefile.am @@ -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 diff --git a/shlibs/mount/src/Makefile.am b/shlibs/mount/src/Makefile.am index 02c12b09..8fedd412 100644 --- a/shlibs/mount/src/Makefile.am +++ b/shlibs/mount/src/Makefile.am @@ -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) -- 2.39.5