Makefile.test revision 146381
1#
2# We just select the builtin shells and check whether it is really
3# executed. This should print just the shell paths. Because we
4# normally don't have a ksh, we make this test conditional. This means
5# one has to recreate the test results once ksh is installed.
6#
7# $FreeBSD: head/tools/regression/usr.bin/make/shell/select/Makefile 146381 2005-05-19 11:23:01Z harti $
8#
9
10all:
11	@${MAKE} sh
12	@${MAKE} csh
13	@if [ -x /bin/ksh ] ; then ${MAKE} ksh ; fi
14
15.ifmake sh
16
17.SHELL: name=sh
18sh: print_path
19
20.elifmake csh
21
22.SHELL: name=csh
23csh: print_path
24
25.elifmake ksh
26
27.SHELL: name=ksh
28ksh: print_path
29
30.endif
31
32print_path:
33	@ps -opid,command | awk '$$1=='$$$$' { print $$2; }'
34