make: Pattern Rules

1 
1 10.5 Defining and Redefining Pattern Rules
1 ==========================================
1 
1 You define an implicit rule by writing a "pattern rule".  A pattern rule
1 looks like an ordinary rule, except that its target contains the
1 character '%' (exactly one of them).  The target is considered a pattern
1 for matching file names; the '%' can match any nonempty substring, while
1 other characters match only themselves.  The prerequisites likewise use
1 '%' to show how their names relate to the target name.
1 
1    Thus, a pattern rule '%.o : %.c' says how to make any file 'STEM.o'
1 from another file 'STEM.c'.
1 
1    Note that expansion using '%' in pattern rules occurs *after* any
1 variable or function expansions, which take place when the makefile is
DONTPRINTYET 1 read.  ⇒How to Use Variables Using Variables, and *noteFunctions
1DONTPRINTYET 1 read.  ⇒How to Use Variables Using Variables, and ⇒Functions

 for Transforming Text Functions.
1 

Menu