How can I replace a pattern in a list of strings in boost build ?
In GNU make that could be done using substitution for changing file extension, or patsubst in general.
How can I replace a pattern in a list of strings in boost build ?
In GNU make that could be done using substitution for changing file extension, or patsubst in general.
Copyright © 2021 Jogjafile Inc.
Here is an example using the rule "replace-list" from builtin module regex:
Let's say the file
example_file.iis located in the directory, its name will be added to the listSWIG_SOURCESbygloband will becomeexample_file_wrap.cppin the listSWIG_GENERATED_CPP_FILES;The
\\are used to mean that.is a litteral dot, without them.would match any character.The
$matches the end of the string.More information in the documentation of regex builtin