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#
| 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: head/tools/regression/usr.bin/make/shell/path/Makefile 146381 2005-05-19 11:23:01Z harti $
| 10# $FreeBSD: head/tools/regression/usr.bin/make/shell/path/Makefile 146822 2005-05-31 14:13:07Z harti $
|
11# 12
| 11# 12
|
13all: sh csh ksh 14 @${MAKE} sh_test 15 @${MAKE} csh_test 16 @if [ -x /bin/ksh ] ; then ${MAKE} ksh_test ; fi 17 18sh: sh.sh 19 @cp ${.CURDIR}/sh.sh ${.OBJDIR}/sh 20 @chmod +x ${.OBJDIR}/sh 21 22csh: sh.sh 23 @cp ${.CURDIR}/sh.sh ${.OBJDIR}/csh 24 @chmod +x ${.OBJDIR}/csh 25 26ksh: sh.sh 27 @cp ${.CURDIR}/sh.sh ${.OBJDIR}/ksh 28 @chmod +x ${.OBJDIR}/ksh 29
| |
30.ifmake sh_test 31 32.SHELL: path=${.OBJDIR}/sh 33sh_test: 34 @: This is the shell. 35 36.elifmake csh_test 37 38.SHELL: path=${.OBJDIR}/csh 39csh_test: 40 @: This is the C-shell. 41 42.elifmake ksh_test 43 44.SHELL: path=${.OBJDIR}/ksh 45ksh_test: 46 @: This is the Korn-shell. 47 48.endif
| 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
|