Makefile.test revision 146381
197049Speter# 2166124Srafan# Change the path for builtin shells. There are two methods to do this. 397049Speter# This is the first of them when the basename of the path is equal to 497049Speter# one of the builtin shells so that the .SHELL target automatically 597049Speter# also selectes the shell without specifying the name. 697049Speter# 797049Speter# Be sure to include a meta-character into the command line, so that 897049Speter# really our shell is executed. 997049Speter# 1097049Speter# $FreeBSD: head/tools/regression/usr.bin/make/shell/path/Makefile 146381 2005-05-19 11:23:01Z harti $ 1197049Speter# 1297049Speter 1397049Speterall: sh csh ksh 1497049Speter @${MAKE} sh_test 1597049Speter @${MAKE} csh_test 1697049Speter @if [ -x /bin/ksh ] ; then ${MAKE} ksh_test ; fi 1797049Speter 1897049Spetersh: sh.sh 1997049Speter @cp ${.CURDIR}/sh.sh ${.OBJDIR}/sh 2097049Speter @chmod +x ${.OBJDIR}/sh 2197049Speter 2297049Spetercsh: sh.sh 2397049Speter @cp ${.CURDIR}/sh.sh ${.OBJDIR}/csh 2497049Speter @chmod +x ${.OBJDIR}/csh 2597049Speter 2697049Speterksh: sh.sh 2797049Speter @cp ${.CURDIR}/sh.sh ${.OBJDIR}/ksh 2897049Speter @chmod +x ${.OBJDIR}/ksh 29166124Srafan 3097049Speter.ifmake sh_test 31166124Srafan 32166124Srafan.SHELL: path=${.OBJDIR}/sh 3397049Spetersh_test: 3497049Speter @: This is the shell. 3597049Speter 3697049Speter.elifmake csh_test 3797049Speter 3897049Speter.SHELL: path=${.OBJDIR}/csh 3997049Spetercsh_test: 4097049Speter @: This is the C-shell. 4197049Speter 42166124Srafan.elifmake ksh_test 43166124Srafan 4497049Speter.SHELL: path=${.OBJDIR}/ksh 4597049Speterksh_test: 4697049Speter @: This is the Korn-shell. 47166124Srafan 4897049Speter.endif 4997049Speter