Makefile: declare all targets PHONY
问题 Consider a long makefile with numerous targets, all of which are PHONY (meaning that the target name does not represent an existing file). I can do either: .PHONY: a a: do someting a .PHONY: b b: do someting b .PHONY: c c: do someting c Or: .PHONY: a b c a: do someting a b: do someting b c: do someting c The first option is cumbersome, and the second option is prone to error, when future me adds a target and forget to declare it as PHONY . Is there a standard way to declare all targets in a