Modifiers in Makefile rule's dependency list
Posted
by gnu_maker
on Stack Overflow
See other posts from Stack Overflow
or by gnu_maker
Published on 2010-05-08T02:43:28Z
Indexed on
2010/05/08
2:48 UTC
Read the original article
Hit count: 216
The problem is fairly simple. I am trying to write a rule, that given the name of the required file will be able to tailor its dependencies.
Let's say I have two programs: calc_foo and calc_bar and they generate a file with output dependent on the parameter. My target would have a name 'target_*_*'; for example, 'target_foo_1' would be generated by running './calc_foo 1'.
The question is, how to write a makefile that would generate outputs of the two programs for a range of parameters?
© Stack Overflow or respective owner