3 ms·
The classic Kernighan and Pike book, The Unix Programming Environment[1], has a good example of advanced make usage (cascading / recursive makes, multiple (an
by vram22 6y ago
The classic Kernighan and Pike book, The Unix Programming Environment[1], has a good example of advanced make usage (cascading / recursive makes,
multiple (and implied) rules, sources and targets, etc.), along the lines of your example, in the chapter at the end of the book on hoc[2], the higher order calculator. They build multiple, incrementally more powerful versions of hoc in that chapter, as a case study to tie together many key topics in the book.
[1] https://en.m.wikipedia.org/wiki/The_Unix_Programming_Environment https://en.m.wikipedia.org/wiki/The_Unix_Programming_Environ...
[2] https://en.m.wikipedia.org/wiki/Hoc_(programming_language) https://en.m.wikipedia.org/wiki/Hoc_(programming_language)