]> sourceware.org Git - lvm2.git/commitdiff
Quick fix to compile lvm2api tests when possible
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Mar 2011 21:30:43 +0000 (21:30 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Mar 2011 21:30:43 +0000 (21:30 +0000)
Do not build lvm2api tests when lvm2api lib is not enabled.

test/api/Makefile.in

index 4c2e8871f1943fc59bb6919ab29d7bcfbbe1f447..50f245689855cd8f990d858b72226eefb0e8ec33 100644 (file)
@@ -20,11 +20,14 @@ ifeq ("@DEBUG@", "yes")
 endif
 
 TARGETS = 
+ifeq ("@APPLIB@", "yes")
+TARGETS += test
 test_SOURCES = test.c
 wrapper_SOURCES = test.c
 INCLUDES += -I../../include
 
-UNIT = vgtest.t percent.t
+TARGETS += vgtest.t percent.t
+endif
 
 LVMLIBS = @LVM2APP_LIB@ -ldevmapper
 DEPLIBS = $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
@@ -44,9 +47,9 @@ test_OBJECTS = $(test_SOURCES:.c=.o)
 wrapper_OBJECTS = $(wrapper_SOURCES:.c=.o)
 OBJECTS = $(test_OBJECTS)
 
-all: tests test
+all: tests
 
-tests: $(UNIT)
+tests: $(TARGETS)
 
 test: $(test_OBJECTS) $(DEPLIBS)
        $(CC) -o test $(test_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) $(READLINE_LIBS)
This page took 0.038244 seconds and 5 git commands to generate.