aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/posix.mk
blob: 43219258306ef097ef2a32bb875469c5509c6360 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $NetBSD: posix.mk,v 1.3 2022/01/23 18:15:29 rillig Exp $

all:	x plus subs err

x:
	@echo "Posix says we should execute the command as if run by system(3)"
	@echo "Expect 'Hello,' and 'World!'"
	@echo Hello,; false; echo "World!"

plus:
	@echo a command
	+@echo "a command prefixed by '+' executes even with -n"
	@echo another command

subs:
	@echo make -n
	@${.MAKE} -r -f ${MAKEFILE} -n plus
	@echo make -n -j1
	@${.MAKE} -r -f ${MAKEFILE} -n -j1 plus

err:
	@(echo Now we expect an error...; exit 1)
	@echo "Oops! you shouldn't see this!"