devices/Makefile
changeset 281 c91bbf7bc52c
parent 272 efb1c792a6a4
child 287 529c27d9d4d7
--- a/devices/Makefile	Mon Jun 26 11:28:24 2006 +0000
+++ b/devices/Makefile	Mon Jun 26 14:20:36 2006 +0000
@@ -61,6 +61,7 @@
 
 KERNEL_DIR := /lib/modules/$(KERNEL)/build
 CURRENT_DIR := $(shell pwd)
+INSTALL_MOD_DIR := ethercat/devices
 
 modules:
 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
@@ -68,7 +69,8 @@
 install: modules_install
 
 modules_install:
-	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules_install
+	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) \
+		INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
 
 clean:
 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean