mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 02:06:37 +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.
15 lines
491 B
Makefile
15 lines
491 B
Makefile
# $NetBSD: opt-where-am-i.mk,v 1.4 2022/01/27 02:24:46 sjg Exp $
|
|
#
|
|
# Tests for the -w command line option, which outputs the current directory
|
|
# at the beginning and end of running make. This is useful when building
|
|
# large source trees that involve several nested make calls.
|
|
|
|
# The first "Entering directory" is missing since the below .MAKEFLAGS comes
|
|
# too late for it.
|
|
.MAKEFLAGS: -w
|
|
|
|
all:
|
|
.if ${.CURDIR} != "/"
|
|
@MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -r -f ${MAKEFILE:tA} -C /
|
|
.endif
|