multipath: remove callout code
[platform/upstream/multipath-tools.git] / Makefile
index 88968c7..5b0c61a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
 # Makefile
 #
-# Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@free.fr>
-
-BUILD = glibc
+# Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@opensvc.com>
+#
 
 #
 # Try to supply the linux kernel headers.
@@ -20,9 +19,21 @@ endif
 export KRNLSRC
 export KRNLOBJ
 
-BUILDDIRS = $(shell find . -name Makefile -mindepth 2 -exec dirname {} \;)
+BUILDDIRS = \
+       libmultipath \
+       libmultipath/prioritizers \
+       libmultipath/checkers \
+       libmpathpersist \
+       multipath \
+       multipathd \
+       mpathpersist \
+       kpartx
 
+ifeq   ($(MULTIPATH_VERSION),)
 VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
+else
+VERSION = $(MULTIPATH_VERSION)
+endif
 
 all: recurse
 
@@ -33,17 +44,17 @@ recurse:
        done
 
 recurse_clean:
-       @for dir in $(BUILDDIRS); do\
+       @for dir in $(BUILDDIRS); do \
        $(MAKE) -C $$dir clean || exit $?; \
        done
 
 recurse_install:
-       @for dir in $(BUILDDIRS); do\
+       @for dir in $(BUILDDIRS); do \
        $(MAKE) -C $$dir install || exit $?; \
        done
 
 recurse_uninstall:
-       @for dir in $(BUILDDIRS); do\
+       @for dir in $(BUILDDIRS); do \
        $(MAKE) -C $$dir uninstall || exit $?; \
        done