Changeset 501 in kBuild for vendor/gnumake/current/tests/scripts/features/patternrules
- Timestamp:
- Sep 15, 2006 2:30:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/features/patternrules
r283 r501 24 24 # 1 - existing file 25 25 %.1: void 26 @ false26 @exit 1 27 27 %.1: #MAKEFILE# 28 @ true28 @exit 0 29 29 30 30 # 2 - phony 31 31 %.2: void 32 @ false32 @exit 1 33 33 %.2: 2.phony 34 @ true34 @exit 0 35 35 .PHONY: 2.phony 36 36 37 37 # 3 - implicit-phony 38 38 %.3: void 39 @ false39 @exit 1 40 40 %.3: 3.implicit-phony 41 @ true41 @exit 0 42 42 43 43 3.implicit-phony: … … 96 96 unlink("$dir/foo.c"); 97 97 98 99 # TEST #4: make sure precious flag is set properly for targets 100 # that are built via implicit rules (Savannah bug #13218). 101 # 102 run_make_test(' 103 .DELETE_ON_ERROR: 104 105 .PRECIOUS: %.bar 106 107 %.bar:; @touch $@ && exit 1 108 109 $(dir)/foo.bar: 110 111 ', 112 "dir=$dir", 113 "#MAKE#: *** [$dir/foo.bar] Error 1", 114 512); 115 116 unlink("$dir/foo.bar"); 117 118 119 # TEST #5: make sure targets of a macthed implicit pattern rule never 120 # never considered intermediate (Savannah bug #13022). 121 # 122 run_make_test(' 123 .PHONY: all 124 all: foo.c foo.o 125 126 %.h %.c: %.in 127 touch $*.h 128 touch $*.c 129 130 %.o: %.c %.h 131 echo $+ >$@ 132 133 %.o: %.c 134 @echo wrong rule 135 136 foo.in: 137 touch $@ 138 139 ', 140 '', 141 'touch foo.in 142 touch foo.h 143 touch foo.c 144 echo foo.c foo.h >foo.o'); 145 146 unlink('foo.in', 'foo.h', 'foo.c', 'foo.o'); 147 98 148 # This tells the test driver that the perl test script executed properly. 99 149 1;
Note:
See TracChangeset
for help on using the changeset viewer.

