Q. Is it always necessary that makefile should be saved as by the name "Makefile" in the directory? If try to save it with a different name, throws an error "make: Nothing to be done for <filename>. How to avoid it?
The -f option in the make command is used to specify the name of the Makefile we want to use. It stands for "file". By providing this option, we can instruct 'make' to use a specific file as the Makefile, allowing us to have Makefiles with different names for different projects in a directory.