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