>>>>> "Jeffrey" == Jeffrey Ratcliffe <[EMAIL PROTECTED]> writes:

Jeffrey> I have a Makefile with several rules:
Jeffrey> dir/1/file_1.bdfi : $(shell deps file_1.bdf) | dir/1
Jeffrey>        command file_1.bdf > dir/1/file_1.bdfi
[...]

Jeffrey> Is there a way of reducing these to 1 rule with automatic
Jeffrey> variables?
Jeffrey> %.bdfi : $(shell deps $(basename $(@F)).bdf) | $(@D)
Jeffrey>        command $(basename $(@F)).bdf > $@

For this kind of thing you need secondary expansion.
See the node "Secondary Expansion" in the GNU Make manual.

Tom


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to