1# 2# In compat mode (the default without -j) a line that contains no shell 3# meta characters and no shell builtins is not passed to the shell but 4# executed directly. In our example the ls line without meta characters 5# will really execute ls, while the line with meta characters will execute 6# our special shell. 7#
| 1# 2# In compat mode (the default without -j) a line that contains no shell 3# meta characters and no shell builtins is not passed to the shell but 4# executed directly. In our example the ls line without meta characters 5# will really execute ls, while the line with meta characters will execute 6# our special shell. 7#
|
8# $FreeBSD: head/tools/regression/usr.bin/make/shell/builtin/Makefile 146454 2005-05-20 15:25:04Z harti $
| 8# $FreeBSD: head/tools/regression/usr.bin/make/shell/builtin/Makefile 146822 2005-05-31 14:13:07Z harti $
|
9
| 9
|
10all: sh 11 @MAKEFLAGS= ${MAKE} -B no-builtin 12 @MAKEFLAGS= ${MAKE} -B builtin
| 10.SHELL: path="${.CURDIR}/sh"
|
13
| 11
|
14sh: sh.sh 15 @cp ${.CURDIR}/sh.sh ${.OBJDIR}/sh 16 @chmod +x ${.OBJDIR}/sh 17 18.ifmake builtin || no-builtin 19 20.SHELL: path="${.OBJDIR}/sh" 21
| |
22.PHONY: builtin no-builtin 23 24builtin: 25 @exec ls -d . 26 27no-builtin: 28 @ls -d .
| 12.PHONY: builtin no-builtin 13 14builtin: 15 @exec ls -d . 16 17no-builtin: 18 @ls -d .
|
29 30.endif
| |
| |