gnu make

Articles

The Trouble with Hidden Targets

Make programs are very good at keeping track of targets, files that need to be built, and the dependencies between targets. But the Make program is only as good as its inputs. If you don't tell Make about a relationship between two files, it wont discover it on its own and it'll make mistakes because it assumes it has perfect knowledge about the files and their relationships.

John Graham-Cumming's picture John Graham-Cumming
Tracing rule execution in GNU Make

Who hasn't wondered what exactly Make's log file output means. This article is about Makefile tracing. I cover tracing the execution of Makefile rules.

John Graham-Cumming's picture John Graham-Cumming
Adding set operations to GNU Make

The new GMSL functions include ways of testing the relationship between sets and determining whether an individual element is in a set.

John Graham-Cumming's picture John Graham-Cumming
The Basics: VPATH and vpath

Ask Mr. Make talks about the uses of VPATH and vpath.

John Graham-Cumming's picture John Graham-Cumming
Learning Make with the Towers of Hanoi

The Towers of Hanoi puzzle consists of a small board with three pegs on it. On the left most peg a stack of discs is arranged in descending order of size: the largest disc is on the bottom.

John Graham-Cumming's picture John Graham-Cumming
Make Clean: Usman's Law

Usman's Law (named after a smart coworker of mine who spent months working with customer Makefiles). make clean is intended to take you back to a state where everything will be rebuilt from scratch.   Often times it doesn't. Here's why.

John Graham-Cumming's picture John Graham-Cumming
GNU Make User-Defined Functions

Creating GNU Make built-in functions is easy, but it does create a maintenance problem: the next time GNU Make is updated we'll need to port our changes to the new version.

John Graham-Cumming's picture John Graham-Cumming
The Pitfalls and Benefits of GNU Make Parallelization

Many build processes run for hours with build managers commonly typing 'make' and going home for the night. GNU Make's solution to this problem is parallel execution, which is a simple command-line option that causes GNU Make to run jobs in parallel using the dependency in the Makefile to run in the correct order.

John Graham-Cumming's picture John Graham-Cumming
The Basics of GNU Make

GNU Make user-defined functions can do a lot. Ask Mr. Make takes you on a quick your of the basics.

John Graham-Cumming's picture John Graham-Cumming
GNU Make path handling

Ask Mr. Make discusses how GNU Make handles paths.

John Graham-Cumming's picture John Graham-Cumming

Pages

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.