summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-03-24 22:22:38 -0400
committerGraham Christensen <graham@grahamc.com>2018-03-25 19:52:08 -0400
commit30dd2d3feb6d872372ee6f9ec86e58c3367589c7 (patch)
treee1f1e043b0e1e5cfb21e352d187575ee36647c62 /doc
parentf67ea4a6d0b14a61af3ccd98ef1a37ce870162e1 (diff)
Validate when building outputs
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile4
-rw-r--r--doc/default.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 366d971d7819..1ef668528add 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -11,7 +11,7 @@ clean:
validate: manual-full.xml
jing "$$RNG" manual-full.xml
-out/html/index.html: manual-full.xml style.css
+out/html/index.html: validate manual-full.xml style.css
mkdir -p out/html
xsltproc $$xsltFlags \
--nonet --xinclude \
@@ -24,7 +24,7 @@ out/html/index.html: manual-full.xml style.css
mkdir -p out/html/images/callouts
cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/
-out/epub/manual.epub: manual-full.xml
+out/epub/manual.epub: validate manual-full.xml
mkdir -p out/epub/scratch
xsltproc $$xsltFlags --nonet \
--output out/epub/scratch/ \
diff --git a/doc/default.nix b/doc/default.nix
index b04c9c1b5566..5869920415c3 100644
--- a/doc/default.nix
+++ b/doc/default.nix
@@ -7,7 +7,7 @@ in
pkgs.stdenv.mkDerivation {
name = "nixpkgs-manual";
- buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ];
+ buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing ];
src = ./.;