git: 03fdd4f38d89 - stable/14 - atf: Guard libexec/atf with WITH_TESTS_SUPPORT

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 28 Nov 2024 14:38:54 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=03fdd4f38d89be0823d84436149b100c161ddade

commit 03fdd4f38d89be0823d84436149b100c161ddade
Author:     Franco Fichtner <franco@opnsense.org>
AuthorDate: 2024-11-18 18:36:46 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-28 14:38:16 +0000

    atf: Guard libexec/atf with WITH_TESTS_SUPPORT
    
    Other atf components are guarded by WITH_TESTS_SUPPORT already.
    WITH_TESTS is for actual tests.
    
    Reviewed by:    markj
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D47660
    
    (cherry picked from commit 43e045c1733d50fad79f3a53e05140b8dc0d7fa6)
---
 libexec/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libexec/Makefile b/libexec/Makefile
index 204c7ef31bdb..d4b0c8088896 100644
--- a/libexec/Makefile
+++ b/libexec/Makefile
@@ -118,10 +118,13 @@ SUBDIR+=	tftpd
 .endif
 
 .if ${MK_TESTS} != "no"
-_atf=		atf
 _tests=		tests
 .endif
 
+.if ${MK_TESTS_SUPPORT} != "no"
+_atf=		atf
+.endif
+
 .if ${MK_NUAGEINIT} != "no"
 _nuageinit=	nuageinit
 .endif