gnu make

Articles

Target-specific and Pattern-specific GNU Make macros

This article introduces target- and pattern-specific variables and shows how they can be used to selectively alter options within a build based on the name of a target or targets being built.

John Graham-Cumming's picture John Graham-Cumming
Making directories in GNU Make

This article looks at a variety of ways to achieve directory creation in GNU Make and points out a common trap for the unwary.

John Graham-Cumming's picture John Graham-Cumming
Rebuilding When a File's Checksum Changes

In this article, Ask Mr. Make shows a simple hack to GNU Make to cause it to do the right thing when the contents of a source file change.

John Graham-Cumming's picture John Graham-Cumming
Rebuilding When CPPFLAGS Changes

GNU Make has no way of detecting that some targets ought to be rebuilt, because it doesn't take into account changing the commands. If, for example DEBUG=1 causes the flags passed to the compiler to change then the target ought to be rebuilt. This article shows how, in a few lines of GNU Make code, to make that happen.

John Graham-Cumming's picture John Graham-Cumming
Dynamic Breakpoints in the GNU Make Debugger

The most recent change (taking GMD from v1.0.0 to v1.0.1) is the addition of dynamic target breakpoints. At the GMD prompt it's now possible to set and remove breakpoints on the name of a file (in GNU Make language a target) that the Makefile will build.

John Graham-Cumming's picture John Graham-Cumming
Setting a Makefile Variable From Outside the Makefile

In this article, Ask Mr. Make talks about how to set Makefile variable from outside the Makefile.

John Graham-Cumming's picture John Graham-Cumming
Dumping Every Makefile Variable

What if you want to print out every variable defined in a Makefile? In this tip I'm going to show you how and introduce GNU Make's powerful functions.

John Graham-Cumming's picture John Graham-Cumming
Printing the Value of a Makefile Variable

There aren't any debuggers for Make, and Make doesn't provide the sort of interactivity you'd see from a scripting language like Perl or Python. So what is an easy way to figure out the value of a variable? This simple Makefile does all the work for you.

John Graham-Cumming's picture John Graham-Cumming
Makefile Debugging: Tracing Macro Values

Ask Mr. Make talks about how to trace macro values when debuggin makefiles.

John Graham-Cumming's picture John Graham-Cumming
Self-Documenting Makefiles

<

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.