mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Features of interest: Allow setting target local variables (similar to gmake) In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands before comparion. contrib/bmake/mk/cc-wrap.mk is an example of using these See ChangeLog for the gory details.
17 lines
384 B
Makefile
17 lines
384 B
Makefile
# $NetBSD: varname-dot-make-pid.mk,v 1.3 2022/01/23 21:48:59 rillig Exp $
|
|
#
|
|
# Tests for the special .MAKE.PID variable, which contains the process ID of
|
|
# the make process itself.
|
|
|
|
# The process ID must be a positive integer.
|
|
.if ${.MAKE.PID:C,[0-9],,g} != ""
|
|
. error
|
|
.elif !(${.MAKE.PID} > 0)
|
|
. error
|
|
.endif
|
|
|
|
# Ensure that the process exists.
|
|
_!= kill -0 ${.MAKE.PID}
|
|
|
|
all: .PHONY
|