Better modules_install targets.
This commit is contained in:
parent
1d15573863
commit
004e2af8de
7
Makefile
7
Makefile
|
|
@ -1,7 +1,7 @@
|
|||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
#
|
||||
# IgH EtherCAT master
|
||||
#
|
||||
# $Id$
|
||||
|
|
@ -55,6 +55,7 @@ endif
|
|||
|
||||
KERNEL_DIR := /lib/modules/$(KERNEL)/build
|
||||
CURRENT_DIR := $(shell pwd)
|
||||
INSTALL_MOD_DIR := ethercat
|
||||
|
||||
modules:
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
|
||||
|
|
@ -63,8 +64,8 @@ install: modules_install
|
|||
@script/install.sh $(KERNEL)
|
||||
|
||||
modules_install:
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)/master modules_install
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)/devices modules_install
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) \
|
||||
INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
|
||||
|
||||
clean: cleandoc
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ endif
|
|||
|
||||
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 @@ modules:
|
|||
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
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@
|
|||
#
|
||||
# The kernel to compile the EtherCAT sources against
|
||||
#
|
||||
KERNEL := `uname -r`
|
||||
KERNEL := $(shell uname -r)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ endif
|
|||
|
||||
KERNEL_DIR := /lib/modules/$(KERNEL)/build
|
||||
CURRENT_DIR := $(shell pwd)
|
||||
INSTALL_MOD_DIR := ethercat/master
|
||||
|
||||
modules:
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) modules
|
||||
|
|
@ -69,7 +70,8 @@ modules:
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue