help-make
[Top][All Lists]
Advanced

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

Will a rule be updated if its dependent file is modified by another rule


From: Peng Yu
Subject: Will a rule be updated if its dependent file is modified by another rule?
Date: Thu, 4 Mar 2010 17:41:35 -0600

Suppose I have file2 that is newer than file1, and file4 is older than
file3. In the trials that I did, both rules in the makefile are always
executed. I'm wonder if this is always true. Or I just happen to
observer this behavior?


.PHONY: all

all: file1 file2

file3: file4
        touch file3

file1: file2
        touch file1
        touch file3




reply via email to

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