From 398db808619373eda4cf742ed8bc7e699d5df526 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Mon, 21 Oct 2019 01:27:01 +0000 Subject: [PATCH] MFC r352929: Add a top-level makeman target Abstracting away the details of how src.conf(5) is generated is arguably a good thing; do so with a top-level makeman target. --- Makefile | 3 ++- Makefile.inc1 | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fc6e0646af0..99fec702a25 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ # targets - Print a list of supported TARGET/TARGET_ARCH pairs # for world and kernel targets. # toolchains - Build a toolchain for all world and kernel targets. +# makeman - Regenerate src.conf(5) # sysent - (Re)build syscall entries from syscalls.master. # xdev - xdev-build + xdev-install for the architecture # specified with TARGET and TARGET_ARCH. @@ -132,7 +133,7 @@ TGTS= all all-man buildenv buildenvvars buildkernel buildworld \ reinstallkernel reinstallkernel.debug \ installworld kernel-toolchain libraries maninstall \ obj objlink showconfig tags toolchain update \ - sysent \ + makeman sysent \ _worldtmp _legacy _bootstrap-tools _cleanobj _obj \ _build-tools _build-metadata _cross-tools _includes _libraries \ build32 distribute32 install32 buildsoft distributesoft installsoft \ diff --git a/Makefile.inc1 b/Makefile.inc1 index c5f68aa6043..2de4ddc3c85 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1423,6 +1423,10 @@ packageworld: .PHONY . endif .endfor +makeman: .PHONY + ${_+_}cd ${.CURDIR}/tools/build/options; sh makeman > \ + ${.CURDIR}/share/man/man5/src.conf.5 + _sysent_dirs= sys/kern _sysent_dirs+= sys/compat/freebsd32 _sysent_dirs+= sys/compat/cloudabi32 \ -- 2.45.0