git: 299dfb3cec6b - releng/15.0 - Makefile.incl1: .WAIT before distribute in etc

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 06 Nov 2025 23:11:58 UTC
The branch releng/15.0 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=299dfb3cec6b3953c7a4697efd57659a4ae4e3e0

commit 299dfb3cec6b3953c7a4697efd57659a4ae4e3e0
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-11-02 04:22:26 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-11-06 23:11:15 +0000

    Makefile.incl1: .WAIT before distribute in etc
    
    In order to make sure that man pages are all installed before we run
    makewhatis to generate mandoc.db files, we have long placed etc at the
    end of the list of subdirectories being recursed into by the build.
    In order to support installworld -jN, a .WAIT was more recently added
    here.
    
    With the recent adoption by the release engineering team of parallel
    *release* builds (aka 'make release -jN') it is now also necessary to
    add the same .WAIT before recursing for the 'distribute' target, as we
    otherwise end up with distribution sets containing incomplete mandoc.db
    files.
    
    Approved by:    re (cperciva)
    Reviewed by:    bdrewery
    PR:             289683
    MFC after:      3 days
    Sponsored by:   https://www.patreon.com/cperciva
    Differential Revision:  https://reviews.freebsd.org/D53533
    
    (cherry picked from commit dcb6706ba494f34e2a2ce97e5c5f2867b9e1f5ef)
    (cherry picked from commit 48dbf763337aea30e29971e751d3aa1044a555ef)
---
 Makefile.inc1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index dcd4fd23c087..3f93e1065622 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -466,7 +466,7 @@ SUBDIR+=	${_DIR}
 # by calling 'makedb' in share/man.  This is only relevant for
 # install/distribute so they build the whatis file after every manpage is
 # installed.
-.if make(installworld) || make(install)
+.if make(installworld) || make(install) || make(distributeworld) || make(distribute)
 SUBDIR+=.WAIT
 .endif
 SUBDIR+=etc