mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
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
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $NetBSD: include-main.mk,v 1.5 2020/09/05 18:18:05 rillig Exp $
|
|
#
|
|
# Until 2020-09-05, the .INCLUDEDFROMFILE magic variable did not behave
|
|
# as described in the manual page.
|
|
#
|
|
# The manual page says that it is the "filename of the file this Makefile
|
|
# was included from", while before 2020-09-05 it was the "filename in which
|
|
# the latest .include happened". See parse.c, function ParseSetIncludeFile.
|
|
#
|
|
# Since 2020-09-05, the .INCLUDEDFROMDIR and .INCLUDEDFROMFILE variables
|
|
# properly handle nested includes and even .for loops.
|
|
|
|
.if !defined(.INCLUDEDFROMFILE)
|
|
. info main-before-ok
|
|
.else
|
|
. warning main-before-fail(${.INCLUDEDFROMFILE})
|
|
.endif
|
|
|
|
.for i in once
|
|
. if !defined(${.INCLUDEDFROMFILE})
|
|
. info main-before-for-ok
|
|
. else
|
|
. warning main-before-for-fail(${.INCLUDEDFROMFILE})
|
|
. endif
|
|
.endfor
|
|
|
|
.include "include-sub.mk"
|
|
|
|
.if !defined(.INCLUDEDFROMFILE)
|
|
. info main-after-ok
|
|
.else
|
|
. warning main-after-fail(${.INCLUDEDFROMFILE})
|
|
.endif
|
|
|
|
.for i in once
|
|
. if !defined(${.INCLUDEDFROMFILE})
|
|
. info main-after-for-ok
|
|
. else
|
|
. warning main-after-for-fail(${.INCLUDEDFROMFILE})
|
|
. endif
|
|
.endfor
|
|
|
|
all: # nothing
|