0
obj-m += interceptor.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


make: make nothing to be done for all <---error

I don't know how to solve it.

3
  • 2
    Are those make -C lines indented with a tab in the makefile? Apr 8, 2015 at 14:03
  • I think they must be, because if they weren't make will show some sort of syntax error such as "missing separator" or something. The fact that it says "nothing to do" means it fully and correctly parsed the makefile. Apr 9, 2015 at 4:21
  • Do you have a file named all in your directory where you're invoking make? If you do then you'd get a message like this, because the all file already exists. Apr 9, 2015 at 4:22

1 Answer 1

0

You need a tab (must be a tab, not spaces) before line 3 and line 5, like:

all:
    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

DO NOT COPY DIRECTLY from the sample above, since the tab I typed has been converted to spaces by Stackoverflow.

1
  • @LaserFrame Would you mind upvoting and accepting this answer if it does help? :)
    – starrify
    Apr 21, 2015 at 5:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.