mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 00:15:16 -04:00
Quite a lot of churn on style, but lots of
good work refactoring complicated functions
and lots more unit-tests.
Thanks mostly to rillig at NetBSD
Some interesting entries from ChangeLog
o .MAKE.{UID,GID} represent uid and gid running make.
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
checks in InitObjdir. Explicit .OBJDIR target always allows
read-only directory.
o add more unit tests for META MODE
Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main
Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c
26 lines
857 B
Makefile
26 lines
857 B
Makefile
# $NetBSD: depsrc.mk,v 1.4 2020/12/22 19:38:44 rillig Exp $
|
|
#
|
|
# Tests for special sources (those starting with a dot, followed by
|
|
# uppercase letters) in dependency declarations, such as .PHONY.
|
|
|
|
# TODO: Implementation
|
|
|
|
# TODO: Test 'target: ${:U.SILENT}'
|
|
|
|
# Demonstrate when exactly undefined variables are expanded in a dependency
|
|
# declaration.
|
|
target: .PHONY source-${DEFINED_LATER}
|
|
#
|
|
DEFINED_LATER= later
|
|
#
|
|
source-: .PHONY
|
|
: 'Undefined variables are expanded directly in the dependency'
|
|
: 'declaration. They are not preserved and maybe expanded later.'
|
|
: 'This is in contrast to local variables such as $${.TARGET}.'
|
|
source-later: .PHONY
|
|
: 'Undefined variables are tried to be expanded in a dependency'
|
|
: 'declaration. If that fails because the variable is undefined,'
|
|
: 'the expression is preserved and tried to be expanded later.'
|
|
|
|
all:
|
|
@:;
|