mirror of
https://github.com/mirror/make.git
synced 2026-08-29 18:58:01 +08:00
Implement the shortest stem first search order for pattern-specific variables and pattern rules.
This commit is contained in:
@@ -207,6 +207,18 @@ CWEAVE := :
|
||||
|
||||
unlink(@f);
|
||||
|
||||
# TEST #9: Test shortest stem selection in pattern rules.
|
||||
|
||||
run_make_test('
|
||||
%.x: ;@echo one
|
||||
%-mt.x: ;@echo two
|
||||
|
||||
all: foo.x foo-mt.x
|
||||
',
|
||||
'',
|
||||
"one\ntwo");
|
||||
|
||||
1;
|
||||
|
||||
# This tells the test driver that the perl test script executed properly.
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user