summary refs log tree commit diff
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)
downloadnixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.tar
nixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.tar.gz
nixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.tar.bz2
nixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.tar.lz
nixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.tar.xz
nixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.tar.zst
nixpkgs-30dd2d3feb6d872372ee6f9ec86e58c3367589c7.zip
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 366d971d781..1ef668528ad 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 b04c9c1b556..5869920415c 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 = ./.;