[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forcing a rule

From: Noel Yap
Subject: Re: forcing a rule
Date: Fri, 02 Apr 2004 12:14:16 -0500
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Boris Kolpackov wrote:

Noel Yap <address@hidden> 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:

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


reply via email to

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