I'm trying to optionally add arguments to a command, depending on the
target, as shown by my (obviously non-working) example:
%.xdb : %.bdfi
var=1
[ $(basename $(@F)) = part_of_filename ] && var=2
command --var=$(var) $(basename $(@F)).bdfi
I could make a rule for each possible target, but it seems it could be
simpler, as there are several possible combinations.
Any ideas?
Please CC me on replies, as I am not subscribed.
Regards
Jeff
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make