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)
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o Fix building and unit-tests on non-BSD. o More code cleanup and refactoring. o More unit tests
19 lines
396 B
Makefile
19 lines
396 B
Makefile
# $NetBSD: directive-ifdef.mk,v 1.3 2020/11/08 22:38:28 rillig Exp $
|
|
#
|
|
# Tests for the .ifdef directive.
|
|
|
|
# TODO: Implementation
|
|
|
|
DEFINED= defined
|
|
|
|
# It looks redundant to have a call to defined() in an .ifdef, but it's
|
|
# possible. The .ifdef only affects plain symbols, not function calls.
|
|
.ifdef defined(DEFINED)
|
|
. info Function calls in .ifdef are possible.
|
|
.else
|
|
. error
|
|
.endif
|
|
|
|
all:
|
|
@:;
|