Software Methods and Tools

Kenneth M. Anderson <kena@cs.colorado.edu>

Lecture 09: Advanced Make and The Surgical Team

Today's Lecture

Advanced Make Techniques

Make Macros

Increased Abstraction

Make Automatic Variables

Automatic Variable Definition
$@ The target of the rule
$< The first dependency
$^ All of the dependencies
$? All of the dependencies newer than the target of the rule
$* The stem of a pattern matching rule. If you are building input.o from input.c, the stem is “input”. This automatic variable only works in pattern matching rules.

Examples

The View Path

Make Pattern Matching

Benefits of Pattern Matching

Implicit Rules

The Surgical Team

The Dilemma of Team Size

The Proposed Team

How is this different?

How does this scale?

The Modern Surgical Team

Summary

Coming Up Next