--- a/devices/Makefile Tue Jun 06 11:59:52 2006 +0000
+++ b/devices/Makefile Mon Jun 12 14:37:38 2006 +0000
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
#
-# kbuild Makefile
+# Makefile
#
# IgH EtherCAT master device modules
#
@@ -35,11 +35,11 @@
#
#------------------------------------------------------------------------------
-ifneq ($(KERNELRELEASE),)
-
#------------------------------------------------------------------------------
# kbuild section
+ifneq ($(KERNELRELEASE),)
+
obj-m := ec_8139too.o
ec_8139too-objs := 8139too.o
@@ -49,12 +49,10 @@
EXTRA_CFLAGS = -DEC_REV=$(REV) -DEC_USER=$(USER)
#------------------------------------------------------------------------------
+# default section
else
-#------------------------------------------------------------------------------
-# default section
-
ifneq ($(wildcard ../ethercat.conf),)
include ../ethercat.conf
else
@@ -65,7 +63,12 @@
CURRENT_DIR := $(shell pwd)
modules:
- $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)
+ $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
+
+install: modules_install
+
+modules_install:
+ $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules_install
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean