Created scripts directory and improved install and init scripts.

This commit is contained in:
Florian Pose
2006-05-19 09:56:55 +00:00
parent 1ff86791ee
commit c821aa3f6d
6 changed files with 86 additions and 52 deletions
+9 -11
View File
@@ -33,34 +33,32 @@
#
#------------------------------------------------------------------------------
ifneq ($(KERNELRELEASE),)
#------------------------------------------------------------------------------
# kbuild section
ifneq ($(KERNELRELEASE),)
obj-m := master/ devices/
#------------------------------------------------------------------------------
# default section
else
#------------------------------------------------------------------------------
# default section
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNEL := `uname -r`
DEVICEINDEX := 99
KERNEL := $(shell uname -r)
endif
KERNELDIR := /lib/modules/$(KERNEL)/build
KERNEL_DIR := /lib/modules/$(KERNEL)/build
CURRENT_DIR := $(shell pwd)
modules:
$(MAKE) -C $(KERNELDIR) M=`pwd`
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)
clean: cleandoc
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
doc:
doxygen Doxyfile
@@ -69,7 +67,7 @@ cleandoc:
@rm -rf doc
install:
@./install.sh $(KERNEL) $(DEVICEINDEX)
@script/install.sh $(KERNEL)
#------------------------------------------------------------------------------