help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple pattern rules


From: Stephan Beal
Subject: Re: simple pattern rules
Date: Tue, 6 Apr 2010 15:12:11 +0200

On Tue, Apr 6, 2010 at 3:00 PM, Greg Chicares <address@hidden> wrote:
# How to build it (if necessary).
%.cdb : %.tcp
       tcprules $@ $*.tcp.tmp < $^

A slight addendum to that: pattern rules will never be invoked "automatically" - there must be a named rule which refers to them. e.g. Make has lots of built-in pattern rules, but none of them will activate unless you actually name a file which resolves to one of the rules.

--
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]