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/meta/Makefile 146452 2005-05-20 15:06:27Z harti $
| 8# $FreeBSD: head/tools/regression/usr.bin/make/shell/meta/Makefile 146822 2005-05-31 14:13:07Z harti $
|
9
| 9
|
10all: sh 11 @MAKEFLAGS= ${MAKE} -B no-meta 12 @MAKEFLAGS= ${MAKE} -B meta 13 14sh: sh.sh 15 @cp ${.CURDIR}/sh.sh ${.OBJDIR}/sh 16 @chmod +x ${.OBJDIR}/sh 17 18.ifmake meta || no-meta 19
| |
20.SHELL: path="${.OBJDIR}/sh" 21 22.PHONY: meta no-meta 23 24meta: 25 @ls * 26 27no-meta: 28 @ls -d .
| 10.SHELL: path="${.OBJDIR}/sh" 11 12.PHONY: meta no-meta 13 14meta: 15 @ls * 16 17no-meta: 18 @ls -d .
|
29 30.endif
| |
| |