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)
Most relevant change: o parse.c: try to include 'posix.mk' the first time .POSIX: is encountered, to allow for beter POSIX compliance. Others o cond.c: make debug logging for comparisons less technical o lst.c: fix mem leak in Lst_Remove o job.c: fix echoing of command with '-' in silent target in jobs mode o var.c: make debug logs more readable prefer 'long long' over 'long' on 32-bit C99 platforms fix crash on .undef of an environment variable
22 lines
469 B
Makefile
22 lines
469 B
Makefile
# $NetBSD: directive-elifdef.mk,v 1.4 2022/02/09 21:09:24 rillig Exp $
|
|
#
|
|
# Tests for the .elifdef directive, which is seldom used. Instead of writing
|
|
# '.elifdef VAR', the usual form is the more general '.elif defined(VAR)'.
|
|
|
|
# At this point, VAR is not defined, so the condition evaluates to false.
|
|
.if 0
|
|
.elifdef VAR
|
|
. error
|
|
.endif
|
|
|
|
VAR= # defined
|
|
|
|
# At this point, VAR is defined, so the condition evaluates to true.
|
|
.if 0
|
|
.elifdef VAR
|
|
.else
|
|
. error
|
|
.endif
|
|
|
|
all:
|