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)
Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py
43 lines
933 B
Makefile
43 lines
933 B
Makefile
# $NetBSD: cond-func-exists.mk,v 1.5 2020/10/24 08:46:08 rillig Exp $
|
|
#
|
|
# Tests for the exists() function in .if conditions.
|
|
|
|
.if !exists(.)
|
|
. error
|
|
.endif
|
|
|
|
# The argument to the function must not be enclosed in quotes.
|
|
# Neither double quotes nor single quotes are allowed.
|
|
.if exists(".")
|
|
. error
|
|
.endif
|
|
|
|
.if exists('.')
|
|
. error
|
|
.endif
|
|
|
|
# The only way to escape characters that would otherwise influence the parser
|
|
# is to enclose them in a variable expression. For function arguments,
|
|
# neither the backslash nor the dollar sign act as escape character.
|
|
.if exists(\.)
|
|
. error
|
|
.endif
|
|
|
|
.if !exists(${:U.})
|
|
. error
|
|
.endif
|
|
|
|
# The argument to the function can have several variable expressions.
|
|
# See cond-func.mk for the characters that cannot be used directly.
|
|
.if !exists(${.PARSEDIR}/${.PARSEFILE})
|
|
. error
|
|
.endif
|
|
|
|
# Whitespace is trimmed on both sides of the function argument.
|
|
.if !exists( . )
|
|
. error
|
|
.endif
|
|
|
|
all:
|
|
@:;
|