Skip to contentSkip to conversation

master - lvmetad: lvm depends on libdaemonclient.a

PATCH Alasdair Kergon 1 participant 1 message Jan 4, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a527a3b8c25200284824cd43ec7693d5543741a4
Commit:        a527a3b8c25200284824cd43ec7693d5543741a4
Parent:        ad85b0c526b40a4e78ac83426f54c935c147c787
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Fri Jan 4 23:10:38 2013 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Fri Jan 4 23:10:38 2013 +0000

lvmetad: lvm depends on libdaemonclient.a

Rebuild lvm binary if libdaemonclient.a changes.

---
 tools/Makefile.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
tools/Makefile.in +4 -0
index 15843f0..96dd8cf 100644
@@ -135,6 +135,10 @@ lvm: $(OBJECTS) lvm.o $(top_builddir)/lib/liblvm-internal.a
 	$(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -o $@ $(OBJECTS) lvm.o \
 		$(LVMLIBS) $(READLINE_LIBS) $(LIBS) -rdynamic
 
+ifeq ("@BUILD_LVMETAD@", "yes")
+lvm: $(top_builddir)/libdaemon/client/libdaemonclient.a
+endif
+
 lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a  $(interfacebuilddir)/libdevmapper.a
 	$(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \
 	      $(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS)