[dm-devel] [PATCH 1/7] Makefile: Remove assignments to unused variables
Bart Van Assche
bart.vanassche at sandisk.com
Wed May 17 15:43:03 UTC 2017
No multipath-tools source file or Makefile imports anything directly
from the kernel source tree. Hence remove the variables that refer to
the kernel tree.
Since the $(VERSION) Makefile macro is not used, remove it. Note:
the version number is defined as a macro in libmultipath/version.h.
Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
---
Makefile | 27 +--------------------------
1 file changed, 1 insertion(+), 26 deletions(-)
diff --git a/Makefile b/Makefile
index cfee0d07..bfb168fb 100644
--- a/Makefile
+++ b/Makefile
@@ -2,28 +2,6 @@
# Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui at opensvc.com>
#
-#
-# Try to supply the linux kernel headers.
-#
-ifeq ($(KRNLSRC),)
- KRNLLIB = /lib/modules/$(shell uname -r)
- ifeq ($(shell test -r $(KRNLLIB)/source && echo 1),1)
- KRNLSRC = $(KRNLLIB)/source
- KRNLOBJ = $(KRNLLIB)/build
- else
- KRNLSRC = $(KRNLLIB)/build
- KRNLOBJ = $(KRNLLIB)/build
- endif
- export KRNLSRC
- export KRNLOBJ
-endif
-
-ifeq ($(MULTIPATH_VERSION),)
- VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
-else
- VERSION = $(MULTIPATH_VERSION)
-endif
-
BUILDDIRS = \
libmpathcmd \
libmultipath \
@@ -43,10 +21,7 @@ endif
all: recurse
recurse:
- @for dir in $(BUILDDIRS); do \
- $(MAKE) -C $$dir VERSION=$(VERSION) \
- KRNLSRC=$(KRNLSRC) KRNLOBJ=$(KRNLOBJ) || exit $?; \
- done
+ @for dir in $(BUILDDIRS); do $(MAKE) -C $$dir || exit $?; done
recurse_clean:
@for dir in $(BUILDDIRS); do \
--
2.12.2
More information about the dm-devel
mailing list