# Makefile
#
# Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@free.fr>
-
-BUILD = glibc
+#
#
# Try to supply the linux kernel headers.
export KRNLSRC
export KRNLOBJ
-BUILDDIRS = libmultipath libcheckers path_priority \
- devmap_name multipath multipathd kpartx
-ALLDIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d ! -name \.git)
+BUILDDIRS = \
+ libmultipath \
+ libmultipath/prioritizers \
+ libmultipath/checkers \
+ multipath \
+ multipathd \
+ kpartx
+ifeq ($(MULTIPATH_VERSION),)
VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
-INSTALLDIRS = devmap_name multipath multipathd kpartx path_priority
+else
+VERSION = $(MULTIPATH_VERSION)
+endif
all: recurse
done
recurse_clean:
- @for dir in $(ALLDIRS); do\
+ @for dir in $(BUILDDIRS); do \
$(MAKE) -C $$dir clean || exit $?; \
done
recurse_install:
- @for dir in $(INSTALLDIRS); do\
+ @for dir in $(BUILDDIRS); do \
$(MAKE) -C $$dir install || exit $?; \
done
recurse_uninstall:
- @for dir in $(INSTALLDIRS); do\
+ @for dir in $(BUILDDIRS); do \
$(MAKE) -C $$dir uninstall || exit $?; \
done