Skip to contentSkip to conversation

fix build of snapshot dmeventd module

PATCH New Mikulas Patocka 2 participants 3 messages Feb 10, 2010 – Feb 16, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix build of snapshot dmeventd module

Fix build of snapshot dmeventd module

When you type "make", the module is not compiled. It is compiled on "make install" command.

The reason is that "make" without arguments takes the first target, that is "mirror", it depends on "lvm2", thus it builds only "lvm2" and "mirror" subdirectories, but not "snapshot".

The patch changes Makefile so that make.tmpl is included before individual targets, make.tmpl contains "all" as its first target, so simple "make" command will build all the subdirectories.

---
 daemons/dmeventd/plugins/Makefile.in |    5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)
daemons/dmeventd/plugins/Makefile.in +2 -3
Index: LVM2.2.02.60/daemons/dmeventd/plugins/Makefile.in
===================================================================
@@ -19,8 +19,7 @@ VPATH = @srcdir@
 
 SUBDIRS += lvm2 mirror snapshot
 
-mirror: lvm2
-snapshot: lvm2
-
 include ../../../make.tmpl
 
+mirror: lvm2
+snapshot: lvm2
#1 lore raw

PATCH 1/1 fix build of snapshot dmeventd module

Quoted 1 line · Mikulas Patocka

Fix build of snapshot dmeventd module

Is something this still broken here that the 2nd Feb checkin didn't fix?

Alasdair

#2 lore raw

PATCH 1/1 fix build of snapshot dmeventd module

Quoted 6 lines · Alasdair G Kergon
Quoted 1 line · Mikulas Patocka

Fix build of snapshot dmeventd module

Is something this still broken here that the 2nd Feb checkin didn't fix?

Alasdair

I have tried current CVS version now and it is OK.

Mikulas