2 # A target must be rebuilt when a dependency of a dependency of a dependency changes.
3 >all.do printf 'redo-ifchange a\n'
4 >a.do printf 'redo-ifchange b\ndate +%s\n'
5 >b.do printf 'redo-ifchange c\ndate +%s\n'
6 >c.do printf 'redo-ifchange d\ndate +%s\n'
10 <a read -r timestamp_a1
11 <b read -r timestamp_b1
12 <c read -r timestamp_c1
18 <a read -r timestamp_a2
19 <b read -r timestamp_b2
20 <c read -r timestamp_c2
22 test ${timestamp_a2} -gt ${timestamp_a1}
23 test ${timestamp_b2} -gt ${timestamp_b1}
24 test ${timestamp_c2} -gt ${timestamp_c1}