Re:I Like Makefiles
by orbisvicis on Saturday September 21, 2024 @07:30AM
(#41609297)
I didn't know you could redefine .PHONY like that and what... all the phony targets are accumulated into a list?
Not just .PHONY - you can do that for any target: https://www.gnu.org/software/make/manual/html_node/Multiple-...
“One file can be the target of several rules. All the prerequisites mentioned in all the rules are merged into one list of prerequisites for the target.”
I still wouldn’t say it’s that complicated - you do need to know your way around the syntax a bit but it’s less challenging than getting all the other tooling working in the first place. :)