bug-make
[Top][All Lists]
Advanced

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

Re: [bug #51269] Reusing data from targets for prerequisites


From: SF Markus Elfring
Subject: Re: [bug #51269] Reusing data from targets for prerequisites
Date: Tue, 20 Jun 2017 17:18:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

>> * Can it eventually happen that dependencies will not be resolved if
>>   target names do not contain the percent character?
> 
> I can't remember, but a simple experiment should answer that !

I guess that it will be noticed once more that implicit rules will work
in an other way than static pattern rules.
Does the support for placeholder syntax differ there just by the software
design which was intended?


>> * Can another link help in the section “How patterns match” of the
>>   documentation?
> 
> Be specific: to which page (give its URL) do you consider adding a link,
> to where, using which part of the page's text as anchor.

https://www.gnu.org/software/make/manual/html_node/Pattern-Match.html

Are you interested in a better connection between manual sections?


>> I am also interested in data processing for several fields from
>> targets (and not only a single “%” as the usual placeholder).  Will it
>> make sense to capture any more data into corresponding variables?
> 
> There's little point going beyond basic substitution unless we go for
> full regex-based matching and replacement,
> OBJ = $(SRC:s!(.*)/srcroot/(.*)\.c!$1/buildroot/$2.o!)
> or similar, and I doubt make shall aim for that any time soon.

How are the chances to support regular expressions by the make programming
language without invoking external shell commands?

Would you like to use named capturing groups?

Regards,
Markus



reply via email to

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