1281760Ssjg# $Id: posix.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
2281760Ssjg
3281760Ssjgall:	x plus subs err
4281760Ssjg
5281760Ssjgx:
6281760Ssjg	@echo "Posix says we should execute the command as if run by system(3)"
7281760Ssjg	@echo "Expect 'Hello,' and 'World!'"
8281760Ssjg	@echo Hello,; false; echo "World!"
9281760Ssjg
10281760Ssjgplus:
11281760Ssjg	@echo a command
12281760Ssjg	+@echo "a command prefixed by '+' executes even with -n"
13281760Ssjg	@echo another command
14281760Ssjg
15281760Ssjgsubs:
16281760Ssjg	@echo make -n
17281760Ssjg	@${.MAKE} -f ${MAKEFILE} -n plus
18281760Ssjg	@echo make -n -j1
19281760Ssjg	@${.MAKE} -f ${MAKEFILE} -n -j1 plus
20281760Ssjg
21281760Ssjgerr:
22281760Ssjg	@(echo Now we expect an error...; exit 1)
23281760Ssjg	@echo "Oops! you shouldn't see this!"
24281760Ssjg
25