can anyone tell me how to execute the clean target which is written in the makefile. here is my code
jamm : hello.o ghola.o
gcc $^ -o $@
%.o : %.c
gcc -c S<
clean :
rm *.c
i have some questions.how to clean all those c files using the clean as target. we give the command make -f file1(say filename is file1) and it sees the target as jamm and execute but it wont execute the clean target.If in the command line i say make clean it says no such file or directory i'm unable to get this concept can anyone please tell me how to execute these clean when i have written in my make file.please guyss