[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Rule-specific variables
From: |
Jeffrey Ratcliffe |
Subject: |
Rule-specific variables |
Date: |
Mon, 28 Apr 2008 10:55:13 +0200 |
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
- Rule-specific variables,
Jeffrey Ratcliffe <=