settings.mk : subst construct

Norbert Thiebaud nthiebaud at gmail.com
Fri Oct 12 19:51:26 PDT 2012


On Fri, Oct 12, 2012 at 6:45 PM, Mat M <matm at gmx.fr> wrote:
> Is the construct legal or is there an issue here ?
> If it is legal, I'd love to have an explanation, because I had no great
> success when googling.

http://www.openoffice.org/tools/dmake/dmake_4.3.html

$(subst,pat,replacement data)
    Will search for pat in data and will replace any occurrence of pat
with the replacement string. The expansion

        $(subst,.o,.c $(OBJECTS))

    is equivalent to:

        $(OBJECTS:s/.o/.c/)


More information about the LibreOffice mailing list