1# 2# Change the path for builtin shells. There are two methods to do this. 3# This is the second of them when both a path and a name are specified. 4# This selects a builtin shell according to the name, but executes it 5# from the specified path. 6# 7# Be sure to include a meta-character into the command line, so that 8# really our shell is executed. 9#
| 1# 2# Change the path for builtin shells. There are two methods to do this. 3# This is the second of them when both a path and a name are specified. 4# This selects a builtin shell according to the name, but executes it 5# from the specified path. 6# 7# Be sure to include a meta-character into the command line, so that 8# really our shell is executed. 9#
|
10# $FreeBSD: head/tools/regression/usr.bin/make/shell/path_select/Makefile 146381 2005-05-19 11:23:01Z harti $
| 10# $FreeBSD: head/tools/regression/usr.bin/make/shell/path_select/Makefile 146822 2005-05-31 14:13:07Z harti $
|
11# 12
| 11# 12
|
13all: shell 14 @${MAKE} sh_test 15 @${MAKE} csh_test 16 @if [ -x /bin/ksh ] ; then ${MAKE} ksh_test ; fi 17 18shell: sh.sh 19 @cp ${.CURDIR}/sh.sh ${.OBJDIR}/shell 20 @chmod +x ${.OBJDIR}/shell 21
| |
22.ifmake sh_test 23
| 13.ifmake sh_test 14
|
24.SHELL: name=sh path=${.OBJDIR}/shell
| 15.SHELL: name=sh path=${.CURDIR}/shell
|
25sh_test: 26 @: This is the shell. 27 28.elifmake csh_test 29
| 16sh_test: 17 @: This is the shell. 18 19.elifmake csh_test 20
|
30.SHELL: name=csh path=${.OBJDIR}/shell
| 21.SHELL: name=csh path=${.CURDIR}/shell
|
31csh_test: 32 @: This is the C-shell. 33 34.elifmake ksh_test 35
| 22csh_test: 23 @: This is the C-shell. 24 25.elifmake ksh_test 26
|
36.SHELL: name=ksh path=${.OBJDIR}/shell
| 27.SHELL: name=ksh path=${.CURDIR}/shell
|
37ksh_test: 38 @: This is the Korn-shell. 39 40.endif
| 28ksh_test: 29 @: This is the Korn-shell. 30 31.endif
|