Category Archives: non-recursive make

GMAKE cheap trick #4 for non-recursive make

One of the tedious sides of non-recursive make is that all makefiles share the same namespace. Every variable or pseudo-target name must be unique across all subprojects, or must be a well-known global variable/target, to which a subproject’s bits and … Continue reading

Posted in make, non-recursive make | Leave a comment

Non-recursive Make part 3 – a tool for the fearless

In part 1, I mentioned that it is typically painful to attack a large project that uses recursive make. Nonetheless, if you’re willing to make the effort, here’s a tool to help you pick apart what’s really going on in … Continue reading

Posted in make, non-recursive make | Leave a comment

Non-recursive make (gmake) part 2: rules.mk

I love the power of GMAKE’s implicit rules and actions. The fewer magical relationships, the better. Ask me how I feel about dev/runtime frameworks that tie your elbows together as you try to write/extend code. I’m going to assume you … Continue reading

Posted in make, non-recursive make | Tagged | 1 Comment

Non-recursive make (gmake) part 1: the basic GNUmakefile layouts

For a while I’ve been converting recursive-make projects to non-recursive (“NR”) makes. I’ve learned some necessary conventions, some tricks and some limitations. All in all, non-recursive make trees are a reliable and efficient way to work. Why The “killer” reason … Continue reading

Posted in make, non-recursive make | Tagged , , | 4 Comments