At 12:06 AM 11/5/2002 -0500, Paul D. Smith wrote:
I think I have found a simpler way that avoids the processing overhead in the above substitution.If you have a variable containing all the different kinds of source, why not just declare it explicitly:XMS_SOURCES = foo.xms bar.xms baz.xms biz.xms $(XMS_SOURCES:%=%.mk): xms.mkdepend
I simply have a separate pattern rule for each source file type:
%.xms.mk : %.xms /path/to/xms.mkdepend
/path/to/xms.mkdepend $< > $@
%.xmt.mk : %.xmt /path/to/xmt.mkdepend
/path/to/xmt.mkdepend $< > $@
etc.
g> Here is an explicit rule for what I want: g> foo.xms.mk : foo.xms /path/to/scripts/xms.mkdepend g> Is there a way to generalize the above rule for all %.mk files? No.
Thanks very much for your help. - Greg Keraunen _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
