Deleted Added
full compact
Makefile.test (146381) Makefile.test (146822)
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#
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 $
7# $FreeBSD: head/tools/regression/usr.bin/make/shell/select/Makefile 146822 2005-05-31 14:13:07Z harti $
8#
9
8#
9
10all:
11 @${MAKE} sh
12 @${MAKE} csh
13 @if [ -x /bin/ksh ] ; then ${MAKE} ksh ; fi
10.ifmake sh_test
14
11
15.ifmake sh
16
17.SHELL: name=sh
12.SHELL: name=sh
18sh: print_path
13sh_test: print_path
19
14
20.elifmake csh
15.elifmake csh_test
21
22.SHELL: name=csh
16
17.SHELL: name=csh
23csh: print_path
18csh_test: print_path
24
19
25.elifmake ksh
20.elifmake ksh_test
26
27.SHELL: name=ksh
21
22.SHELL: name=ksh
28ksh: print_path
23ksh_test: print_path
29
30.endif
31
32print_path:
33 @ps -opid,command | awk '$$1=='$$$$' { print $$2; }'
24
25.endif
26
27print_path:
28 @ps -opid,command | awk '$$1=='$$$$' { print $$2; }'