diff options
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-x | testsuite/make.tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index fdbb4ccfc..5119a77d3 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -540,6 +540,19 @@ bar: | |||
540 | @echo $(BAR) | 540 | @echo $(BAR) |
541 | ' | 541 | ' |
542 | 542 | ||
543 | # $* and $< are supported for target rules | ||
544 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
545 | touch src.c src.h | ||
546 | testing 'make support $* and $< for target rules' \ | ||
547 | "make -f -" "src.c src.h\nsrc.o\nsrc\nsrc.c\n" "" ' | ||
548 | src.o: src.c src.h | ||
549 | @echo "$?" | ||
550 | @echo "$@" | ||
551 | @echo "$*" | ||
552 | @echo "$<" | ||
553 | ' | ||
554 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | ||
555 | |||
543 | # An empty original suffix indicates that every word should have | 556 | # An empty original suffix indicates that every word should have |
544 | # the new suffix added. If neither suffix is provided the words | 557 | # the new suffix added. If neither suffix is provided the words |
545 | # remain unchanged. | 558 | # remain unchanged. |