Thread: pgsql: Run xmllint validation only once

pgsql: Run xmllint validation only once

From
Peter Eisentraut
Date:
Run xmllint validation only once

Before, each documentation target that built something from
postgres.sgml ran xmllint first to validate the input.  Here, we
change it so that the validation only runs once and produces an output
file, and all the other targets build from that output file.  This
avoids redundant work when building multiple documentation targets
(such as html and man).

Also, when we run xmllint, we can resolve entities (included files).
This helps with tools that don't support vpath builds, such as
dbtoepub.

All this also organizes the make targets a bit better for implementing
equivalent steps in meson.

Discussion: https://www.postgresql.org/message-id/e3ae16de-c9f9-f559-2d11-70b1342ae3d1@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ab393528fa4b2486237ee7aa51fac67f82fee824

Modified Files
--------------
doc/src/sgml/Makefile               | 46 +++++++++++++++++++++----------------
doc/src/sgml/standalone-install.xml |  8 +++----
2 files changed, 30 insertions(+), 24 deletions(-)