[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit rules
From: |
Boris Kolpackov |
Subject: |
Re: implicit rules |
Date: |
Mon, 26 Apr 2004 19:46:18 +0000 (UTC) |
User-agent: |
nn/6.6.5+RFC1522 |
Noel Yap <address@hidden> writes:
> I think I meant "latter" (ie "%.mk: %.m"). How can I get make
> to use the "%.mk: %.m" implicit rule to build aoeu/aoeu.mk?
How about using implicit rule double expansion:
.PHONY: all
all: $(CURDIR)/aoeu/aoeu.mk
/%.mk: $$(notdir\ /%.m)
cp $(<) $(@)
%/.:
mkdir -p $(@)
$(CURDIR)/aoeu/aoeu.mk: aoeu.m | $(CURDIR)/aoeu/.
Note that you have to use absolute names for targets
because of the way make mangles paths and stems in
implicit rules (see "Implicit Rule Search Algorithm").
hth,
-boris
- implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules,
Boris Kolpackov <=
- Re: implicit rules, Paul D. Smith, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Paul D. Smith, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26