examples/msr/Makefile
changeset 267 88177083f137
parent 246 0bf7c769de06
--- a/examples/msr/Makefile	Fri Jun 02 08:38:04 2006 +0000
+++ b/examples/msr/Makefile	Fri Jun 02 09:02:18 2006 +0000
@@ -75,13 +75,14 @@
 KERNEL := $(shell uname -r)
 endif
 
-KERNELDIR := /lib/modules/$(KERNEL)/build
+KERNEL_DIR := /lib/modules/$(KERNEL)/build
+CURRENT_DIR := $(shell pwd)
 
 modules:
-	$(MAKE) -C $(KERNELDIR) M=`pwd`
+	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)
 
 clean:
-	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
+	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
 
 install:
 	@./install.sh $(MODULE) $(KERNEL)