<br><br><div class="gmail_quote">On Sun, Jul 10, 2011 at 11:03 AM, Prashant Shah <span dir="ltr">&lt;<a href="mailto:pshah.mumbai@gmail.com">pshah.mumbai@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
On Sun, Jul 10, 2011 at 10:07 AM, Ponkumaran Annadurai<br>
&lt;<a href="mailto:aspkumaran@gmail.com">aspkumaran@gmail.com</a>&gt; wrote:<br>
&gt;  I am trying to compile a sample hello world module, but when issue make<br>
&gt; command, it says that &quot;make: Nothing to be done for `all&#39;.&quot;. <br>
<br>
</div><br>
<br>
------------------- Makefile --------------------------<br>
obj-m += testmod.o<br>
<br>
KERNELDIR ?= /lib/modules/$(shell uname -r)/build<br>
PWD       := $(shell pwd)<br>
<br>
default:<br>
                $(MAKE) -C $(KERNELDIR) M=$(PWD)<br>
<br>
clean:<br>
                rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions<br>
<br>
depend .depend dep:<br>
                $(CC) $(CFLAGS) -M *.c &gt; .depend<br>
<br>
ifeq (.depend,$(wildcard .depend))<br>
        include .depend<br>
endif<br>
<br>
------------------------------------------------------------------<br>
</blockquote></div><br>when I tried your script it prompted that there might be tab instead of eight spaces. So I inserted 8 spaces there, but it still prompted the same. Also I couldn&#39;t understand the script (particularly $(MAKE) - what does the variable stands for? also the rest of the code after &quot;depend.depend.dep&quot;). If you can explain the script, I shall know how to edit the script for my file.<br clear="all">
<br>-- <br>kumaran<br>