42 |
run_make_test(undef, '-L', "make targ from sym"); |
run_make_test(undef, '-L', "make targ from sym"); |
43 |
|
|
44 |
rmfiles('targ', 'dep', 'sym', 'dep1'); |
rmfiles('targ', 'dep', 'sym', 'dep1'); |
45 |
|
|
46 |
|
# Check handling when symlinks point to non-existent files. Without -L we |
47 |
|
# should get an error: with -L we should use the timestamp of the symlink. |
48 |
|
|
49 |
|
symlink("../$dirname/dep", 'sym'); |
50 |
|
run_make_test('targ: sym ; @echo make $@ from $<', '', |
51 |
|
"#MAKE#: *** No rule to make target `sym', needed by `targ'. Stop.", 512); |
52 |
|
|
53 |
|
run_make_test('targ: sym ; @echo make $@ from $<', '-L', |
54 |
|
'make targ from sym'); |
55 |
|
|
56 |
|
|
57 |
|
rmfiles('targ', 'sym'); |
58 |
} |
} |
59 |
|
|
60 |
1; |
1; |