Makefile.test revision 146381
1219820Sjeff#
2219820Sjeff# Change the path for builtin shells. There are two methods to do this.
3219820Sjeff# This is the second of them when both a path and a name are specified.
4219820Sjeff# This selects a builtin shell according to the name, but executes it
5219820Sjeff# from the specified path.
6219820Sjeff#
7219820Sjeff# Be sure to include a meta-character into the command line, so that
8219820Sjeff# really our shell is executed.
9219820Sjeff#
10219820Sjeff# $FreeBSD: head/tools/regression/usr.bin/make/shell/path_select/Makefile 146381 2005-05-19 11:23:01Z harti $
11219820Sjeff#
12219820Sjeff
13219820Sjeffall: shell
14219820Sjeff	@${MAKE} sh_test
15219820Sjeff	@${MAKE} csh_test
16219820Sjeff	@if [ -x /bin/ksh ] ; then ${MAKE} ksh_test ; fi
17219820Sjeff
18219820Sjeffshell: sh.sh
19219820Sjeff	@cp ${.CURDIR}/sh.sh ${.OBJDIR}/shell
20219820Sjeff	@chmod +x ${.OBJDIR}/shell
21219820Sjeff
22219820Sjeff.ifmake sh_test
23219820Sjeff
24219820Sjeff.SHELL: name=sh path=${.OBJDIR}/shell
25219820Sjeffsh_test:
26219820Sjeff	@: This is the shell.
27219820Sjeff
28219820Sjeff.elifmake csh_test
29219820Sjeff
30.SHELL: name=csh path=${.OBJDIR}/shell
31csh_test:
32	@: This is the C-shell.
33
34.elifmake ksh_test
35
36.SHELL: name=ksh path=${.OBJDIR}/shell
37ksh_test:
38	@: This is the Korn-shell.
39
40.endif
41