I've read and reread the docs on this and I'm still confused.

When I have:

.PHONY: all
all: aoeu/aoeu.mk

%.mk: %.mk
        cp $(<) $(@)

%/.:
        mkdir -p $(@)

aoeu/aoeu.mk: aoeu.mk | aoeu/.


The output is:


$ gmake
gmake: Circular aoeu/aoeu.mk <- aoeu/aoeu.mk dependency dropped.
gmake: Circular aoeu.mk <- aoeu.mk dependency dropped.
mkdir -p aoeu/.
cp aoeu.mk aoeu/aoeu.mk


But if it's changed to:


.PHONY: all
all: aoeu/aoeu.mk

%.mk: %.m
        cp $(<) $(@)

%/.:
        mkdir -p $(@)

aoeu/aoeu.mk: aoeu.m | aoeu/.


The output becomes:


$ gmake
mkdir -p aoeu/.


Can someone explain, please?


Thanks,
Noel


_______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to