'I faced problem while compiling kernel module

Error: *** No rule to make target 'Home' Stop

There how I wrote my Makefile:

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


Solution 1:[1]

The problem is with your folder naming, instead naming the folder OS Home Assignment, name it with underlines os_home_assigmnet. more details can be found here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TomerSamara