The GNU make bookJohn Graham-Cumming

The GNU make book

by John Graham-Cumming · first published 2015

12mentions
6recommended by
9HN commenters
2015–2024first – last mentioned

67% recommend22% neutral11% critical

Why HN recommends it

Goes beyond the GNU Make manual into advanced techniques like rule patterns, functions, and clever Makefile tricks; praised as a treasure trove for working engineers who already know the basics.

Summarised by Claude from recommending comments

"Covers GNU Make basics through advanced topics, including: user-defined functions, macros, and path handling; creating makefile assertions and debugging makefiles; parallelization; automatic dependency generation, rebuilding targets, and non-recursive Make; and using the GNU Make Standard Library"--

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

20 2007: 0 mentions2008: 0 mentions2009: 0 mentions2010: 0 mentions2011: 0 mentions2012: 0 mentions2013: 0 mentions2014: 0 mentions2015: 2 mentions2016: 1 mention2017: 1 mention2018: 0 mentions2019: 2 mentions2020: 1 mention2021: 0 mentions2022: 1 mention2023: 0 mentions2024: 1 mention2025: 0 mentions2026: 0 mentions200720172026

What Hacker News says

  • deng · May 13, 2019 · Recommends

    The GNU Make manual is excellent. For learning advanced techniques: "The GNU Make Book" by John Graham-Cumming.

    on “Ask HN: What overlooked class of tools should a self-taught programmer look into” ↗
  • rvbissell · Mar 29, 2024 · Recommends

    John, Even though this HN post is about GMSL specifically, I want to use it to thank you for writing "The GNU Make Book"[0]. It was a veritable treasure trove that greatly increased my competency with GNU Make. The experience of using that book, and playing with GMSL, was one of the sparks that inspired me to start…

    on “GNU Make Standard Library v1.2.1 released” ↗
  • snaky · May 14, 2019 · Recommends

    "GNU Make Book" by John Graham-Cumming https://nostarch.com/gnumake

    on “Ask HN: What overlooked class of tools should a self-taught programmer look into” ↗
  • LukeShu · Mar 17, 2020 · Recommends

    …for almost a year now. (And others, such as Travis-CI, used it by default right up until it was EOL). Oh, if you appreciate gmsl, you might also appreciate a book by the same author ('jgrahamc), The GNU Make Book. Some of the things in gmsl are certainly hacks, but a lot of it is quite reasonable if you start reading Make macros as "lisp, but with a bunch of extra dollar-signs and commas".

    on “GNU Make Guile Integration” ↗
  • sigil · Oct 2, 2016 · Recommends

    …decade of messing with shiny new build tools, I finally learned to stop worrying and love the bomb (make). It's weird and warty but surprisingly capable. Worth the learning investment. Oh and jgrahamc's "GNU Make Book" is great. [2] [0] https://github.com/apenwarr/redo [1] https://groups.google.com/forum/#!forum/redo-list [2] https://www.nostarch.com/gnumake

    on “Tup – A file-based build system for Linux, OS X, and Windows” ↗
  • zvr · Aug 7, 2022 · Recommends

    …by default uses the file change timestamp to trigger actions. But this is definitely not the only way, and you can code your Makefile so that rebuilds happen when a file's checksum changes. IIRC, the GNU Make Book has the code ready for you to study... Or, you might get more clever and say "when only a comment is changed, I don't want to rebuild"; file checksums are not the correct solution for this, so you can…

    on “Using Landlock to Sandbox GNU Make” ↗
  • JdeBP · Aug 18, 2017 · Mentions

    …DOS, OS/2, and UNIX systems. Prentice Hall. * Robert Mecklenburg (2004). Managing Projects with GNU Make. Nutshell Handbooks. O'Reilly Media. ISBN 9780596552541. * John Graham-Cumming (2015). The GNU Make Book. No Starch Press. ISBN 9781593276492.

    on “Afraid of Makefiles? Don't be” ↗
  • zvr · Sep 21, 2022 · Mentions

    I wrote "the GNU Make Book has the code ready for you to study." I'm currently traveling, without access to my books, but a quick online search at the contents of this book https://nostarch.com/download/GNU_Make_dTOC.pdf shows…

    on “Content based change detection with Make” ↗
  • Dewie3 · May 3, 2015 · Critical

    From the top review: > The GNU Make Book is intended for people who already have an understanding of GNU Make, what it is, and the basics of how and why someone would use it. So a whole book about the Make tool, and yet it still requires prior…

    on “The GNU Make Book” ↗
  • zvr · Sep 20, 2022 · Mentions

    …by default uses the file change timestamp to trigger actions. But this is definitely not the only way, and you can code your Makefile so that rebuilds happen when a file's checksum changes. IIRC, the GNU Make Book has the code ready for you to study... Or, you might get more clever and say "when only a comment is changed, I don't want to rebuild"; file checksums are not the correct solution for this, so you can…

    on “Content based change detection with Make” ↗
  • teddyh · Apr 3, 2015 · Mentions

    I do not get the impression that the “The GNU Make Book” has any substantial similarity with the freely available “Ask Mr. Make” articles – I get the impression that the book is a wholly new work, aimed at being a general manual for GNU Make. The title is…

    on “Make: Theory and Practice” ↗
  • teddyh · Apr 3, 2015 · Mentions

    …such should really be allowed, and I don’t see any consensus forming around disallowing them. Your point about trademarks is much more interesting, though; how many people have paid money for this “The GNU Make Book”, thinking that they have somehow supported the GNU Make project? Isn’t this exactly what trademarks are supposed to prevent?

    on “Make: Theory and Practice” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help