blob: 1dee36806f192992c9fe780a56a01bef05c68701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#
# Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@opensvc.com>
#
BUILDDIRS := \
libmpathcmd \
libmultipath \
libmultipath/prioritizers \
libmultipath/checkers \
libmultipath/foreign \
libmpathpersist \
multipath \
multipathd \
mpathpersist \
kpartx
ifneq ($(ENABLE_LIBDMMP),0)
BUILDDIRS += \
libdmmp
endif
BUILDDIRS.clean := $(BUILDDIRS:=.clean) tests.clean
.PHONY: $(BUILDDIRS) $(BUILDDIRS:=.uninstall) $(BUILDDIRS:=.install) $(BUILDDIRS.clean)
all: $(BUILDDIRS)
$(BUILDDIRS):
$(MAKE) -C $@
multipath multipathd mpathpersist: libmultipath
mpathpersist: libmpathpersist
$(BUILDDIRS.clean):
$(MAKE) -C ${@:.clean=} clean
$(BUILDDIRS:=.install):
$(MAKE) -C ${@:.install=} install
$(BUILDDIRS:=.uninstall):
$(MAKE) -C ${@:.uninstall=} uninstall
clean: $(BUILDDIRS.clean)
install: $(BUILDDIRS:=.install)
uninstall: $(BUILDDIRS:=.uninstall)
test: all
$(MAKE) -C tests
.PHONY: TAGS
TAGS:
etags -a libmultipath/*.c
etags -a libmultipath/*.h
etags -a multipathd/*.c
etags -a multipathd/*.h
|