Boris Kolpackov wrote:

Noel Yap <[EMAIL PROTECTED]> writes:
Sure, everything is possible ;-). Just change


%/.:
        @echo mkdir -p $(@)

to be

%/.: | $$(dir\ %).
        @echo mkdir $(@)

Now '%/.' depends on it's subdirectory. In your case it would expand to

install/common/make/.: | install/common/.

Wouldn't this produce an infinite loop? Have you tried this change with the patch installed?


Which is what you need, right? There is a little catch, however. Make doesn't do double expansion in implicit
rules. If you don't mind patching your make you can find
a patch that implements double expansion here:


http://www.kolpackov.net/projects/make/bk/

What are the chances this patch will make it into future releases of GNU make?


Thanks,
Noel



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

Reply via email to