DocBook: Fix non-determinstic installation of duplicate man pages
authorBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 22:36:52 +0000 (23:36 +0100)
committerJonathan Corbet <corbet@lwn.net>
Fri, 14 Aug 2015 17:07:34 +0000 (11:07 -0600)
commit9ed71e7ad95eb9885420e8d33f33bd4d49e1b775
treebdadbf357b74f4ee4d89d859efe4050abe0bb600
parent7bbac697e4a6e64cc4bae26d57310c916aa0da7a
DocBook: Fix non-determinstic installation of duplicate man pages

Some kernel-doc sections are included in multiple DocBook files.  This
means the mandocs target will generate the same manual page multiple
times with different metadata (author name/address and manual title,
taken from the including DocBook file).  If it's invoked in a parallel
build, the output is non-determinstic.

Build the manual pages in a separate subdirectory per DocBook file,
then sort and de-duplicate when installing them (which is serialised).

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[jc: fixed conflicts with the docs tree]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/DocBook/Makefile