xref: /freebsd/contrib/bmake/unit-tests/deptgt-notparallel.mk (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1# $NetBSD: deptgt-notparallel.mk,v 1.3 2021/12/13 23:38:54 rillig Exp $
2#
3# Tests for the special target .NOTPARALLEL in dependency declarations, which
4# prevents the job module from doing anything in parallel, by setting the
5# maximum jobs to 1.  This only applies to the current make, it is not
6# exported to submakes.
7
8.MAKEFLAGS: -j4
9
10# Set opts.maxJobs back to 1.  Without this line, the output would be in
11# random order, interleaved with separators like '--- 1 ---'.
12.NOTPARALLEL:
13
14all: 1 2 3 4 5 6 7 8
151 2 3 4 5 6 7 8: .PHONY
16	: Making ${.TARGET} out of nothing.
17