From c0274f40185f4975a0b745ea173c3b0ef5b1b2c7 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Sun, 12 Dec 2010 21:08:00 +0000 Subject: [PATCH] Only build the required bits under api/ on make check. --- test/Makefile.in | 6 +++--- test/api/Makefile.in | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/Makefile.in b/test/Makefile.in index 4fa094e7d..0372cfe5d 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -42,19 +42,19 @@ dm_udev_synchronisation = 1 endif all check: init.sh - make -C api + make -C api tests @echo Testing with locking_type 1 VERBOSE=$(VERBOSE) ./bin/harness $(RUN_BASE) @echo Testing with locking_type 3 VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=3 ./bin/harness $(RUN_BASE) check_cluster: init.sh - make -C api + make -C api tests @echo Testing with locking_type 3 VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=3 ./bin/harness $(RUN_BASE) check_local: init.sh - make -C api + make -C api tests @echo Testing with locking_type 1 VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=1 ./bin/harness $(RUN_BASE) diff --git a/test/api/Makefile.in b/test/api/Makefile.in index 90e116d44..498cb0d59 100644 --- a/test/api/Makefile.in +++ b/test/api/Makefile.in @@ -44,7 +44,9 @@ test_OBJECTS = $(test_SOURCES:.c=.o) wrapper_OBJECTS = $(wrapper_SOURCES:.c=.o) OBJECTS = $(test_OBJECTS) -all: $(UNIT) test +all: tests test + +tests: $(UNIT) test: $(test_OBJECTS) $(DEPLIBS) $(CC) -o test $(test_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) $(READLINE_LIBS) -- 2.43.5