2 ms·
"You could always alias make to the default you like" That breaks down when you work with multiple projects. For example, try writing a script that downloads
by Someone 11y ago
"You could always alias make to the default you like"
That breaks down when you work with multiple projects.
For example, try writing a script that downloads and builds a couple of projects. You would have to parse each makefile and hope you can discover the right target to build.
- lisivka 11y ago"all" is the default target to build in GNU autotools projects. make all && sudo make install "all" is also recommended default target in GNU make documentation: Phony targets can have prerequisites. When one directory contains multiple programs, it is most convenient to describe all of the programs in one makefile ./Makefile. Since the target remade by default will be the first one in the makefile, it is common to make this a phony target named ‘all’ and give it, as prerequisites, all the individual programs.