examples/mini/Makefile
branchstable-1.0
changeset 1621 4bbe090553f7
parent 1620 9d7453c16ade
--- a/examples/mini/Makefile	Mon May 29 09:54:18 2006 +0000
+++ b/examples/mini/Makefile	Mon Jun 26 15:04:06 2006 +0000
@@ -56,14 +56,16 @@
 ifneq ($(wildcard kernel.conf),)
 include kernel.conf
 else
-KERNELDIR = /lib/modules/`uname -r`/build
+KERNEL_DIR := /lib/modules/$(shell uname -r)/build
 endif
 
+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
 
 #----------------------------------------------------------------