|
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 toinstall/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 implicitrules. 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
[Prev in Thread] | Current Thread | [Next in Thread] |