[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with static pattern rules and full path
From: |
Boris Kolpackov |
Subject: |
Re: Problem with static pattern rules and full path |
Date: |
Thu, 29 Sep 2005 07:11:04 +0000 (UTC) |
User-agent: |
nn/6.6.5+RFC1522 |
address@hidden 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