Back to concepts

Pattern rules and automatic variables

Use `%` to describe a family of targets and automatic variables to refer to each concrete match.

Continue this concept

The summary remains public. Full access unlocks the complete pattern rules and automatic variables explanation and worked examples.

View full-access options

See it in context

Follow the lessons that apply this concept, then inspect the repository at the exact commit behind each explanation.

GNU Make manual: Defining and Redefining Pattern Rules