Changeset 153 in kBuild for branches/GNU/src/gmake/tests/scripts/features/order_only
- Timestamp:
- Sep 8, 2004 2:43:30 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/features/order_only
r53 r153 110 110 unlink(qw(foo baz)); 111 111 112 # Test order-only in pattern rules 113 114 $makefile4 = &get_tmpfile; 115 116 open(MAKEFILE,"> $makefile4"); 117 118 print MAKEFILE <<'EOF'; 119 %.w : %.x | baz 120 @echo '$$^ = $^' 121 @echo '$$| = $|' 122 touch $@ 123 124 all: foo.w 125 126 .PHONY: baz 127 foo.x baz: 128 touch $@ 129 EOF 130 131 close(MAKEFILE); 132 133 # TEST #7 -- make sure the parser was correct. 134 135 &run_make_with_options($makefile4, "", &get_logfile); 136 $answer = "touch foo.x\ntouch baz\n\$^ = foo.x\n\$| = baz\ntouch foo.w\n"; 137 &compare_output($answer,&get_logfile(1)); 138 139 # TEST #8 -- now we do it again: this time foo.w won't be built 140 141 &run_make_with_options($makefile4, "", &get_logfile); 142 $answer = "touch baz\n"; 143 &compare_output($answer,&get_logfile(1)); 144 145 unlink(qw(foo.w foo.x baz)); 146 112 147 1;
Note:
See TracChangeset
for help on using the changeset viewer.

