3 ms·
Here's a more in-depth and easy to read guide for beginners: http://www.computerhope.com/unix/umake.htm http://www.computerhope.com/unix/umake.htm If you want
by peterwwillis 10y ago
Here's a more in-depth and easy to read guide for beginners: http://www.computerhope.com/unix/umake.htm http://www.computerhope.com/unix/umake.htm
If you want to see some interesting/convoluted Makefiles, get a very complex, large piece of software (something from Gnome, possibly) and use autoconf & automake to generate the Makefiles, then pour through them to see how they tick.
- voltagex_ 10y agoFixing autoconf/automake issues (particularly when autotools is upgraded) is one of the least fun things to do. Make is fine. Automake is horrific.
- nneonneo 10y agoFor the target audience (total Make beginners) poring through autogenerated makefiles might not be such good advice. It's functionally equivalent to telling people to learn Bash by studying a `configure` script, or learning JavaScript by studying EmScripten output. If you're decent with Make and want to learn advanced tricks, then by all means go right ahead, but 95% of Make users will never need to delve into such details.