Skip to contentSkip to conversation

master - build: better srcdir builddir support

PATCH Zdenek Kabelac 1 participant 1 message Jun 14, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5b515db71ba13d2a4f328be6a97bb309401c5c69
Commit:        5b515db71ba13d2a4f328be6a97bb309401c5c69
Parent:        52ab3c1584cd40572e82d6add7a7c71204fa9721
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Jun 14 20:57:02 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Jun 14 22:02:01 2018 +0200

build: better srcdir builddir support

With the move to top-level makefile - there are some issues with subdir recursive makefile.
Make the building more tolerant for now until fully resolved.

---
 Makefile.in      |    3 ++-
 test/Makefile.in |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
Makefile.in +2 -1
index ae05aea..d076088 100644
@@ -193,7 +193,8 @@ endif
 
 endif
 
-include test/unit/Makefile
+# FIXME: Drop once top-level make is resolved
+-include test/unit/Makefile
 include $(top_srcdir)/device_mapper/Makefile
 include $(top_srcdir)/base/Makefile
 
test/Makefile.in +1 -1
index 4c3c715..ca2e2e1 100644
@@ -357,7 +357,7 @@ LIB = $(addprefix lib/, $(LIB_SHARED) $(LIB_LOCAL) $(LIB_NOT) $(LIB_LINK_NOT) $(
 	touch $@
 
 .lib-dir-stamp:
-	$(MKDIR_P) lib
+	$(MKDIR_P) lib unit
 	for i in $(CMDS); do $(LN_S) -f lvm-wrapper lib/$$i; done
 	for i in daemons/clvmd/clvmd daemons/dmeventd/dmeventd \
 		tools/dmsetup daemons/lvmetad/lvmetad \