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)
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

Simple merge