--- a/examples/rtai/Makefile Fri Jun 02 08:38:04 2006 +0000
+++ b/examples/rtai/Makefile Fri Jun 02 09:02:18 2006 +0000
@@ -58,14 +58,16 @@
ifneq ($(wildcard kernel.conf),)
include kernel.conf
else
-KERNELDIR := /lib/modules/`uname -r`/build
+KERNEL_DIR := /lib/modules/`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
#------------------------------------------------------------------------------