5 ms·
> You can use .DEFAULT_GOAL := goal_name to set the default target run by 'make' with no target name specified. I had always, perhaps erroneously, thought that
by mdaniel 10y ago
> You can use .DEFAULT_GOAL := goal_name to set the default target run by 'make' with no target name specified.
I had always, perhaps erroneously, thought that the very first goal in the file was the default one.
- moosingin3space 10y agoThis is true -- the first goal declared is the default.
- jsz0 10y agoIIRC .DEFAULT_GOAL is a relatively new feature. If it's not set goals will be processed in the normal order.