diff -r 9d7453c16ade -r 4bbe090553f7 examples/rtai/Makefile --- a/examples/rtai/Makefile Mon May 29 09:54:18 2006 +0000 +++ b/examples/rtai/Makefile Mon Jun 26 15:04:06 2006 +0000 @@ -58,14 +58,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 #------------------------------------------------------------------------------