Makefile: deal with realtive paths in test/
authorDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 12:50:06 +0000 (14:50 +0200)
committerDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 12:50:06 +0000 (14:50 +0200)
Invoke realpath to convert a possible relative path into an absolute one.

Makefile

index 92c404377bd3321e45d40bbb4718344e08acf835..7cbba567b0414f92cacbc2572f60fc741a7c5a04 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ PWD                   := $(shell pwd)
 all: module test
 
 test::
-       $(MAKE) -C test KERNELDIR=$(KERNELDIR) KBUILD_MODNAME=kdbus$(EXT)
+       $(MAKE) -C test KERNELDIR=$(realpath $(KERNELDIR)) KBUILD_MODNAME=kdbus$(EXT)
 
 module:
        $(MAKE) -C $(KERNELDIR) M=$(PWD)