Makefile.test revision 146381
1169691Skan# 2169691Skan# Change the path for builtin shells. There are two methods to do this. 3169691Skan# This is the second of them when both a path and a name are specified. 4169691Skan# This selects a builtin shell according to the name, but executes it 5169691Skan# from the specified path. 6169691Skan# 7169691Skan# Be sure to include a meta-character into the command line, so that 8169691Skan# really our shell is executed. 9169691Skan# 10169691Skan# $FreeBSD: head/tools/regression/usr.bin/make/shell/path_select/Makefile 146381 2005-05-19 11:23:01Z harti $ 11169691Skan# 12169691Skan 13169691Skanall: shell 14169691Skan @${MAKE} sh_test 15169691Skan @${MAKE} csh_test 16169691Skan @if [ -x /bin/ksh ] ; then ${MAKE} ksh_test ; fi 17169691Skan 18169691Skanshell: sh.sh 19169691Skan @cp ${.CURDIR}/sh.sh ${.OBJDIR}/shell 20169691Skan @chmod +x ${.OBJDIR}/shell 21169691Skan 22169691Skan.ifmake sh_test 23169691Skan 24169691Skan.SHELL: name=sh path=${.OBJDIR}/shell 25169691Skansh_test: 26169691Skan @: This is the shell. 27169691Skan 28169691Skan.elifmake csh_test 29169691Skan 30169691Skan.SHELL: name=csh path=${.OBJDIR}/shell 31169691Skancsh_test: 32169691Skan @: This is the C-shell. 33169691Skan 34169691Skan.elifmake ksh_test 35169691Skan 36169691Skan.SHELL: name=ksh path=${.OBJDIR}/shell 37169691Skanksh_test: 38169691Skan @: This is the Korn-shell. 39169691Skan 40169691Skan.endif 41169691Skan