git: 606e70b7af7e - stable/14 - Makefile: Update doxygen requirements

Alexander Ziaee <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a750b45.201d7.31f64972__6903.95167782611$1786055576$gmane$org@gitrepo.freebsd.org>
The branch stable/14 has been updated by ziaee:

URL: https://cgit.FreeBSD.org/src/commit/?id=606e70b7af7e7f9924c1e002eb3ed4e0df94ec27

commit 606e70b7af7e7f9924c1e002eb3ed4e0df94ec27
Author:     Minsoo Choo <[email protected]>
AuthorDate: 2026-01-06 18:11:11 +0000
Commit:     Alexander Ziaee <[email protected]>
CommitDate: 2026-08-06 22:18:01 +0000

    Makefile: Update doxygen requirements
    
    MFC after:      3 days
    Reviewed by:    imp, ziaee
    Signed-off-by:  Minsoo Choo <[email protected]>
    Closes:         https://github.com/freebsd/freebsd-src/pull/1869
    
    (cherry picked from commit d2f1c8e0d1bebab9fba32d69d261abc101f368ba)
---
 Makefile      | 4 ++--
 Makefile.inc1 | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4eab18a7dce1..c136d445fb2d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@
 # kernel              - buildkernel + installkernel.
 # kernel-toolchain    - Builds the subset of world necessary to build a kernel
 # kernel-toolchains   - Build kernel-toolchain for all universe targets.
-# doxygen             - Build API documentation of the kernel, needs doxygen.
+# doxygen             - Build API documentation of the kernel, needs doxygen, TeX, and graphviz.
 # checkworld          - Run test suite on installed world.
 # check-old           - List obsolete directories/files/libraries.
 # check-old-dirs      - List obsolete directories.
@@ -822,7 +822,7 @@ universe_epilogue: .PHONY
 .MAKE.MODE= normal
 # Normally the things we run from here don't either.
 # Using -DWITH_META_MODE
-# we can buildworld with meta files created which are useful 
+# we can buildworld with meta files created which are useful
 # for debugging, but without any of the rest of a meta mode build.
 MK_DIRDEPS_BUILD= no
 MK_STAGING= no
diff --git a/Makefile.inc1 b/Makefile.inc1
index a1c20599104f..cc41dd23e48b 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2330,6 +2330,14 @@ doxygen: .PHONY
 		echo "You need doxygen (devel/doxygen) to generate the API documentation of the kernel." | /usr/bin/fmt; \
 		exit 1; \
 	fi
+	@if [ ! -x "${LOCALBASE}/bin/tex" ]; then \
+		echo "You need TeX (print/texlive-full) to generate the API documentation of the kernel." | /usr/bin/fmt; \
+		exit 1; \
+	fi
+	@if [ ! -x "${LOCALBASE}/bin/dot" ]; then \
+		echo "You need graphviz (graphics/graphviz) to generate the API documentation of the kernel." | /usr/bin/fmt; \
+		exit 1; \
+	fi
 	${_+_}cd ${.CURDIR}/tools/kerneldoc/subsys; ${MAKE} obj all
 
 #
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.