Noel Yap <[EMAIL PROTECTED]> 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
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make