xref: /freebsd/usr.bin/bmake/tests/shell/path/Makefile.test (revision fd45b686f9d92f583366c75b22c04c7ee49709c0)
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#
11
12.ifmake sh_test
13
14.SHELL: path=${.OBJDIR}/sh
15sh_test:
16	@: This is the shell.
17
18.elifmake csh_test
19
20.SHELL: path=${.OBJDIR}/csh
21csh_test:
22	@: This is the C-shell.
23
24.elifmake ksh_test
25
26.SHELL: path=${.OBJDIR}/ksh
27ksh_test:
28	@: This is the Korn-shell.
29
30.endif
31