Run xmllint validation only once
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 14 Sep 2022 15:55:22 +0000 (17:55 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 14 Sep 2022 16:10:18 +0000 (18:10 +0200)
commitab393528fa4b2486237ee7aa51fac67f82fee824
tree22ead116489acf7088ed4774f6d56b8e7afaf32b
parent8b60db774356117fab2eb53fb37160fa3e173cdb
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
doc/src/sgml/Makefile
doc/src/sgml/standalone-install.xml