[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 " %.m").  How can I get make 
> to use the " %.m" implicit rule to build aoeu/

How about using implicit rule double expansion:

.PHONY: all
all: $(CURDIR)/aoeu/

/ $$(notdir\ /%.m)
        cp $(<) $(@)

        mkdir -p $(@)

$(CURDIR)/aoeu/ 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").


reply via email to

[Prev in Thread] Current Thread [Next in Thread]