3 ms·
You could always alias make to the default you like. But if the newbie can't "make" it work, he/she gets frustrated. I really wish dd had this type of caution.
by terminalcommand 11y ago
You could always alias make to the default you like. But if the newbie can't "make" it work, he/she gets frustrated.
I really wish dd had this type of caution. It would save me a lot of misery, preventing the loss of numerous drives.
- marklgr 11y agoNot sure it's a good habit for newbies to run arbitrary commands to see what they do. Asking for help somewhere (eg. `--help` flag) looks like a much better practice
- 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.