Makefile Static Pattern Rules

Makefile Static Pattern Rules

Static Pattern Static patterns make it easier to define multi-target rules, allowing our rules to be more flexible and adaptable. Let’s first take a look at the syntax: <targets …>: <target-pattern>: <prereq-patterns …>  <commands>… If our <target-pattern> is defined as “%.o”, it means that all targets in our <target> set end with “.o”. If our <prereq-patterns> … Read more