title: make: no rule to make target
body: <p>i have written a simple linux module &amp; its make file </p>
  
  <p>this is my module</p>
  
  <pre><code>    #include &lt;linux/init.h&gt;
      #include &lt;linux/module.h&gt;
      #include &lt;linux/kernel.h&gt;
  
  MODULE_LICENSE("Dual BSD/GPL");
  
  static int hello_init(void) {
    printk("&lt;1&gt; Hello world!\n");
    return 0;
  }
  
  static void hello_exit(void) {
    printk("&lt;1&gt; Bye, cruel world\n");
  }
  
  module_init(hello_init);
  module_exit(hello_exit);
  </code></pre>
  
  <p>this is my make file</p>
  
  <pre><code>    obj-m :=Hello.o
  
  
  KDIR = /usr/src/linux-headers-3.5.0-17
  
  all:
      $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
  
  clean: 
      rm -rf *.o *.ko *.mod.* *.symvers *.order
  </code></pre>
  
  <p>when i execute make -f MakeFile
  it gives following o/p</p>
  
  <pre><code>make -C /usr/src/linux-headers-3.5.0-17 SUBDIRS=/home/linux/Desktop modules
  make[1]: Entering directory `/usr/src/linux-headers-3.5.0-17'
  
    WARNING: Symbol version dump /usr/src/linux-headers-3.5.0-17/Module.symvers
             is missing; modules will have no dependencies and modversions.
  
  scripts/Makefile.build:44: /home/linux/Desktop/Makefile: No such file or directory
  make[2]: *** No rule to make target `/home/linux/Desktop/Makefile'.  Stop.
  make[1]: *** [_module_/home/linux/Desktop] Error 2
  make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-17'
  make: *** [all] Error 2
  </code></pre>
  
  <p>can any one tell me how to get rid of these errors.
  Thanks in advance</p>