xref: /freebsd/usr.bin/bmake/tests/shell/path/Makefile.test (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1#
2# Change the path for builtin shells. There are two methods to do this.
3# This is the first of them when the basename of the path is equal to
4# one of the builtin shells so that the .SHELL target automatically
5# also selectes the shell without specifying the name.
6#
7# Be sure to include a meta-character into the command line, so that
8# really our shell is executed.
9#
10# $FreeBSD$
11#
12
13.ifmake sh_test
14
15.SHELL: path=${.OBJDIR}/sh
16sh_test:
17	@: This is the shell.
18
19.elifmake csh_test
20
21.SHELL: path=${.OBJDIR}/csh
22csh_test:
23	@: This is the C-shell.
24
25.elifmake ksh_test
26
27.SHELL: path=${.OBJDIR}/ksh
28ksh_test:
29	@: This is the Korn-shell.
30
31.endif
32