Hi Paul,
I've been able to build macro's for those intermediate files using the available string functions. Thanks a lot for your help!
Regards,
Simon de Groot
| "Paul D. Smith"
<[EMAIL PROTECTED]>
Sent by: "Paul Smith" <[EMAIL PROTECTED]> 01/27/2005 04:58 PM
|
|
%% "Simon De Groot" <[EMAIL PROTECTED]> writes:
sdg> Thanks for your answer. The foo-target approach indeed renders
sdg> the target non-intermediate and causes it to be rebuilt. Do you
sdg> also have a solution to do this for pattern rules like sub%, or
sdg> would I have to define:
sdg> foo : sub1 sub2 ... subblabla ... subi'mgettingtirednow
I don't know of any other way than listing them all.
The idea is that you must know what these are, or at least be able to
compute them from other, known file names using functions like patsubst,
etc.
After all, if you can write a chain of pattern rules that starts with a
known target and works back to a source file (known or not) you can
perform that exact same operation on the known target with patsubst
functions to derive all the intermediate filenames.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
