title: How to install or copy the driver i.e .ko file to a particular location via makefile?
body: <p>This is my makefile:</p>
  
  <pre><code>ifneq ($(KERNELRELEASE),)
      obj-m := dmcdus_dd.o
  else
      KDIR := /usr/src/linux-headers-3.13.0-24-generic/
  
      all:
          $(MAKE) INSTALL_MOD_DIR=kernel/drivers/input/touchscreen -C $(KDIR) M=$$PWD modules_install
  endif
  
  clean: 
      rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions sample Module.symvers
  </code></pre>
  
  <p>I have specified my required path where i have to move my dmcdus_dd.ko file using INSTALL_MOD_DIR &amp; install it by modules_install. When i type "make" in the console i get the following results in the console:</p>
  
  <pre><code>make INSTALL_MOD_DIR=kernel/drivers/input/touchscreen -C /usr/src/linux-headers-3.5.0-49-generic/ M=$PWD modules_install
  make[1]: Entering directory `/usr/src/linux-headers-3.5.0-49-generic'
  DEPMOD  3.5.0-49-generic
  make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-49-generic'
  </code></pre>
  
  <p>But when i go to the location "/lib/modules/3.5.0-49-generic/kernel/drivers/input/touchscreen" i dont see dmcdus.ko file in that directory... How can i copy my driver to that location?</p>