git: 36c4912749ab - main - atf: refer to `common.mk` using `SRCTOP`

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Thu, 29 Oct 2026 17:59:14 UTC
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=36c4912749ab1d12692302386050e25ce8b1d9de

commit 36c4912749ab1d12692302386050e25ce8b1d9de
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-10-29 17:54:21 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-10-29 17:59:03 +0000

    atf: refer to `common.mk` using `SRCTOP`
    
    This helps make the dependent Makefile (and the values contained within)
    easier to catch when upgrading atf in the future.
    
    MFC after:      1 week
---
 lib/atf/libatf-c++/tests/detail/Makefile | 2 +-
 lib/atf/libatf-c/tests/detail/Makefile   | 2 +-
 libexec/atf/atf-sh/Makefile              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/atf/libatf-c++/tests/detail/Makefile b/lib/atf/libatf-c++/tests/detail/Makefile
index 55cefe524068..1463fc27221e 100644
--- a/lib/atf/libatf-c++/tests/detail/Makefile
+++ b/lib/atf/libatf-c++/tests/detail/Makefile
@@ -29,5 +29,5 @@ BINDIR.${p}=	${TESTSDIR}
 .endfor
 version_helper.o: atf-version
 
-.include "../../../common.mk"
+.include "${SRCTOP}/lib/atf/common.mk"
 .include <bsd.test.mk>
diff --git a/lib/atf/libatf-c/tests/detail/Makefile b/lib/atf/libatf-c/tests/detail/Makefile
index 3fa2919b98b9..bd31f88e7353 100644
--- a/lib/atf/libatf-c/tests/detail/Makefile
+++ b/lib/atf/libatf-c/tests/detail/Makefile
@@ -31,5 +31,5 @@ BINDIR.${p}=	${TESTSDIR}
 .endfor
 version_helper.o: atf-version
 
-.include "../../../common.mk"
+.include "${SRCTOP}/lib/atf/common.mk"
 .include <bsd.test.mk>
diff --git a/libexec/atf/atf-sh/Makefile b/libexec/atf/atf-sh/Makefile
index a76b59e9a1aa..560eeecf6591 100644
--- a/libexec/atf/atf-sh/Makefile
+++ b/libexec/atf/atf-sh/Makefile
@@ -75,5 +75,5 @@ SUBR=		libatf-sh.subr
 HAS_TESTS=
 SUBDIR.${MK_TESTS}+= tests
 
-.include "../../../lib/atf/common.mk"
+.include "${SRCTOP}/lib/atf/common.mk"
 .include <bsd.prog.mk>