1146381Sharti#
2146381Sharti# Change the path for builtin shells. There are two methods to do this.
3146381Sharti# This is the first of them when the basename of the path is equal to
4146381Sharti# one of the builtin shells so that the .SHELL target automatically
5146381Sharti# also selectes the shell without specifying the name.
6146381Sharti#
7146381Sharti# Be sure to include a meta-character into the command line, so that
8146381Sharti# really our shell is executed.
9146381Sharti#
10146381Sharti# $FreeBSD$
11146381Sharti#
12146381Sharti
13146381Sharti.ifmake sh_test
14146381Sharti
15146381Sharti.SHELL: path=${.OBJDIR}/sh
16146381Shartish_test:
17146381Sharti	@: This is the shell.
18146381Sharti
19146381Sharti.elifmake csh_test
20146381Sharti
21146381Sharti.SHELL: path=${.OBJDIR}/csh
22146381Sharticsh_test:
23146381Sharti	@: This is the C-shell.
24146381Sharti
25146381Sharti.elifmake ksh_test
26146381Sharti
27146381Sharti.SHELL: path=${.OBJDIR}/ksh
28146381Shartiksh_test:
29146381Sharti	@: This is the Korn-shell.
30146381Sharti
31146381Sharti.endif
32