Makefile.test revision 146452
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 $
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 .
29
30.endif
31