[build] provision for custom versioning
authorChristophe Varoqui <root@xa-s05.(none)>
Tue, 9 May 2006 21:43:27 +0000 (23:43 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Tue, 9 May 2006 21:43:27 +0000 (23:43 +0200)
apply custom build/rpm versioning for multipath-tools

Brian Wong, Pillardata

Makefile

index 83ae2fe..aacede3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,11 @@ export KRNLOBJ
 
 BUILDDIRS = $(shell find . -mindepth 2 -name Makefile -exec dirname {} \; | grep -v ^lib)
 
+ifeq   ($(MULTIPATH_VERSION),)
 VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
+else
+VERSION = $(MULTIPATH_VERSION)
+endif
 
 all: recurse