>Just recently I have noticed a quite interresting thing:
>
>I have just moved an backup version of a file in an compilation tree
>over the orignal:
>
> mv backup.c~ backup.c
>
>That's nothing special of course. However the interresting thing
>was that make didn't notice this at all. In esp. it didnt notice this
>as a change to backup.c and didn't therefore any recompilation work.
>I would suspect that in this case the modification time of the
>inode corresponding to backup.c~ didn't get updated.
>
>Is this correct behaviour?
>
If I remember correctly make does actually detect a change in the time
stamp. Instead it compares the time stamp of the dependant files with the
file produced by an operation. Thus since backup.c~ is older than the
backup.o (or whatever file you produce) that file is not remade. make
assumes that no change has been made.
> Marcin
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.rutgers.edu
>Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/