Can't compile test kernel module

I have this test file

#include <linux/module.h>
#include <linux/kernel.h>

static int init_module(void){
    printk(KERN_INFO "Hello world!\n");
    return 0;

static void cleanup_module(void){
    printk(KERN_INFO, "I wanna kill my self tbh\n");


and this make file

obj-m += test.o

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

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

I'm not too sure what it means but I get an error saying that it couldn't find Makefile in the current directory and a file and folder are left in the current directory along with the source file and makefile, those files are file and .tmp_versions folder.

I just run the make command and this is the output I get:

make -C /lib/modules/4.15.8-1-ARCH/build M=/home/[user]/projects/c/test modules
make[1]: Entering directory '/usr/lib/modules/4.15.8-1-ARCH/build'
scripts/ /home/[user]/projects/c/test/Makefile: No such file or directory
make[2]: *** No rule to make target '/home/[user]/projects/c/test/Makefile'.  Stop.
make[1]: *** [Makefile:1510: _module_/home/[user]/projects/c/test] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.15.8-1-ARCH/build'
make: *** [makefile:4: all] Error 2