Makefile
changeset 167 37c65411b411
parent 149 0ed43f09130f
child 169 b3ecbec2c487
equal deleted inserted replaced
166:29b19a90ff3f 167:37c65411b411
    24 
    24 
    25 ifneq ($(wildcard ethercat.conf),)
    25 ifneq ($(wildcard ethercat.conf),)
    26 include ethercat.conf
    26 include ethercat.conf
    27 else
    27 else
    28 KERNELDIR := /usr/src/linux
    28 KERNELDIR := /usr/src/linux
       
    29 INSTALLDIR := /opt/ethercat
    29 endif
    30 endif
    30 
    31 
    31 modules:
    32 modules:
    32 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    33 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    33 
    34 
    34 clean:
    35 clean:
    35 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    36 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    36 
    37 
       
    38 install:
       
    39 	@./install.sh $(INSTALLDIR)
       
    40 
    37 #------------------------------------------------------------------------------
    41 #------------------------------------------------------------------------------
    38 
    42 
    39 endif
    43 endif