Hands-on task
Make clean work via .PHONY
In /root/proj there is a build artifact build.out and — as it happens — a regular file named clean. Write a Makefile with a clean target that removes build.out. The catch: because a file named clean sits right there, a naive clean target will be considered "already built" and the recipe won't run. Make it so that make clean always runs and removes build.out, despite the same-named file.
- make
- .PHONY
- phony targets
- makefile
- target name as file