title: kernel programming: No rule to make target `−C'
body: <p>I am trying to learn kernel programming but while trying to compile a simple hello world program i am getting the following error.</p>
  
  <blockquote>
    <p>make −C /lib/modules/3.2.0-67-generic/build M=/home/arun/KPrograms modules
    make[1]: Entering directory <code>/home/arun/KPrograms'
    make[1]: *** No rule to make target</code>−C'.  Stop.
    make[1]: Leaving directory `/home/arun/KPrograms'
    make: <em>*</em> [all] Error 2</p>
  </blockquote>
  
  <p>my <strong>Makefile</strong> is</p>
  
  <pre><code>obj−m += hello−1.o
  
  all:
      make −C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
  
  clean:
      make −C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
  </code></pre>