[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does "make" "order-only-prequisities" work oddly with stems ?
From: |
Boris Kolpackov |
Subject: |
Re: Why does "make" "order-only-prequisities" work oddly with stems ? |
Date: |
Thu, 8 Dec 2005 06:33:07 +0000 (UTC) |
User-agent: |
nn/6.6.5+RFC1522 |
Paul LAURENT <address@hidden> writes:
> First of all, I understood this about "order-only-prequisities" :
>
> If a rule only depends on an order only requisities, it means that the
> target will only be rebuilt upon the prequisity existence condition
> (instead of the modified time condition)
No, the target will be rebuilt only if it does not exist. Order-only
prerequisite's existence or modified time does not affect target's
up-to-date-ness.
> I joined the short Makefile "order-only.mk" and a script which runs
> this Makefile. This should reproduce the strange behaviour I noticed.
I tested your makefiles using make from CVS and it appears to behave as
expected. I also could verify that the problem exist in 3.80. I suspect
3.81beta3 should works as well. You can get it here:
ftp://alpha.gnu.org/gnu/make/
hth,
-boris