[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change behaviour of a multiple target rule
From: |
Gerald Lutter |
Subject: |
Re: Change behaviour of a multiple target rule |
Date: |
Wed, 8 Sep 2010 13:54:09 +0200 |
> GNU make supports this capability but ONLY for pattern rules.
> So if your $(targetlist) can be expressed as a pattern rule
> (that is, there's some commonality between the target names)
> then it can work. For
> example:
>
> %.x %.y %.z : %.q
> recipe
>
> Only one instance of "recipe" will be invoked, and it will be expected to
build all of the targets.
thank you, i'll give it a try with a pattern rule.
----------------------------------------------------------------------------
---
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad
Scientist