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