[dm-devel] [PATCH 10/11] multipath-tools: move code up in Makefile

Xose Vazquez Perez xose.vazquez at gmail.com
Thu Aug 11 18:33:37 UTC 2016


Cc: Christophe Varoqui <christophe.varoqui at opensvc.com>
Cc: device-mapper development <dm-devel at redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
---
 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 7786c83..95c7dfb 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,12 @@ ifeq ($(KRNLSRC),)
 	endif
 endif
 
+ifeq ($(MULTIPATH_VERSION),)
+	VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
+else
+	VERSION = $(MULTIPATH_VERSION)
+endif
+
 export KRNLSRC
 export KRNLOBJ
 
@@ -30,12 +36,6 @@ BUILDDIRS = \
 	mpathpersist \
 	kpartx
 
-ifeq ($(MULTIPATH_VERSION),)
-	VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
-else
-	VERSION = $(MULTIPATH_VERSION)
-endif
-
 all: recurse
 
 recurse:
-- 
2.7.4




More information about the dm-devel mailing list