hiii , i just started studying makefiles and wrote the following one for a simple hello.c file. it shows some error saying :
makefile1:5: * missing separator. Stop.
What is the wrong here ... ?
CC=gcc
CFLAGS=-c -Wall
hello: hello.c
$(CC) $(CFLAGS) hello.c -o hello
clean:
rm -rf *.o
And , Is it always a better option to use a makefile or there are any specific cases to not use them ...?
Please correct me if i am wrong anywhere ...