diff options
Diffstat (limited to 'usr.bin/bmake/tests/shell/path_select/Makefile.test')
-rw-r--r-- | usr.bin/bmake/tests/shell/path_select/Makefile.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/usr.bin/bmake/tests/shell/path_select/Makefile.test b/usr.bin/bmake/tests/shell/path_select/Makefile.test new file mode 100644 index 000000000000..7a8042e60a96 --- /dev/null +++ b/usr.bin/bmake/tests/shell/path_select/Makefile.test @@ -0,0 +1,30 @@ +# +# Change the path for builtin shells. There are two methods to do this. +# This is the second of them when both a path and a name are specified. +# This selects a builtin shell according to the name, but executes it +# from the specified path. +# +# Be sure to include a meta-character into the command line, so that +# really our shell is executed. +# +# + +.ifmake sh_test + +.SHELL: name=sh path=${.CURDIR}/shell +sh_test: + @: This is the shell. + +.elifmake csh_test + +.SHELL: name=csh path=${.CURDIR}/shell +csh_test: + @: This is the C-shell. + +.elifmake ksh_test + +.SHELL: name=ksh path=${.CURDIR}/shell +ksh_test: + @: This is the Korn-shell. + +.endif |