mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
302da1a3d3
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
24 lines
543 B
Makefile
24 lines
543 B
Makefile
# $NetBSD: directive-ifndef.mk,v 1.6 2020/10/24 08:46:08 rillig Exp $
|
|
#
|
|
# Tests for the .ifndef directive, which can be used for multiple-inclusion
|
|
# guards. In contrast to C, where #ifndef and #define nicely line up the
|
|
# macro name, there is no such syntax in make. Therefore, it is more
|
|
# common to use .if !defined(GUARD) instead.
|
|
|
|
.ifndef GUARD
|
|
GUARD= # defined
|
|
. info guarded section
|
|
.endif
|
|
|
|
.ifndef GUARD
|
|
GUARD= # defined
|
|
. info guarded section
|
|
.endif
|
|
|
|
.if !defined(GUARD)
|
|
GUARD= # defined
|
|
. info guarded section
|
|
.endif
|
|
|
|
all:
|
|
@:;
|