[EMAIL PROTECTED] writes:

> There doesn't seem to be a good way to inject the src path in here.

If you were able to use the latest make (3.81beta3) then you could use the
second expansion to craft your rule to do what you want:


srcs := /foo/a.c /bar/b.c
objs := $(addprefix $(objdir)/,$(notdir $(srcs:.c=.o)))

percent := %

$(objs) : $(objdir)/%.o : $$(filter $$(percent)/%.c,$(srcs))
    @cc ...


hth,
-boris



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

Reply via email to