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 <[email protected]>
---
 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, <[email protected]>
 #
 
-#
-# 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

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to