How can I make a pattern recipe for renaming files?
I have a recipe that takes a variable with a list of input files. But those files (Which always have .irx extension) must be stripped of the extension and renamed (copied to preserve the original) to uppercase before calling the program that will process them.
An example:
If the variable value is foo.irx bla.irx the files should be copied to another place as FOO and BLA before the actual recipe executes
Haven't tried anything concrete yet, just have been reading makefile docs in search for something that helps me out.
There's no simple way in GNU Make to "uppercase" a value. But the shell can do this with the
trprogram.You can do something like: