Re:Makefiles – Best Practices
by jgrahamc on Friday February 01, 2019 @12:24PM
(#19056147)
https://www.cmcrossroads.com/article/tips-and-tricks-automat...
[ Parent
| on HN ]
Re:Makefiles – Best Practices
by AceJohnny2 on Friday February 01, 2019 @12:44PM
(#19056376)
Thanks John, your book is the most-referred to on my office shelf ;)
Edit: https://nostarch.com/gnumake (via https://blog.jgc.org/2015/04/the-gnu-make-book-probably-more...)
+1 for a great book, I bought that book too!
I use the patterns in @jgrahamc's article "Escaping: A Walk on the Wild Side" pretty often. Especially the \n definition, which works great to put on the end of a $(foreach) loop inside of a recipe.
@jgrahamc: Thanks for all you've written on Make over the years.
I also recommend this book. The series on “meta programming make” is also quite good: http://make.mad-scientist.net/category/metaprogramming/
Ooh. That's great. I had not seen that!