You want something like:
<tab>$(MAKE) -C $(KERNELDIR) M=$(PWD) $(EXTRA_FLAGS) modules
where <tab> is a literal tab character. spaces won't cut it.
On Thu, Jul 21, 2011 at 10:43, keith hyland <keith at iol.ie> wrote:
> looking for some help here with a makefile. when i run make i get:
>> "make: Nothing to be done for `default'."
>> in the folder there is the makefile (below) and the C source code. I'm
> using a fairly recent Linux Mint 11 (katya) install on an Acer 8371G
> and the purpose of the code is to switch off the ATI graphics adapter
> and let the thing run with the low-power integrated Intel.
>> I copied and pasted the hack from
>http://ubuntuforums.org/archive/index.php/t-1242590.html and it "made"
> & ran quite well under Mint 9
>> i have the standard development files installed; make, binutils,
> build-essential, gcc, linux-headers, etc. - am i missing something?
>> ifneq ($(KERNELRELEASE),)
> obj-m := lenovo_acpi.o
> KERNELDIR ?= /lib/modules/$(shell uname -r)/build
> PWD := $(shell pwd)
> $(MAKE) -C $(KERNELDIR) M=$(PWD) $(EXTRA_FLAGS) modules
> $(MAKE) -C $(KERNELDIR) M=$(PWD) $(EXTRA_FLAGS) clean
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!