about summary refs log tree commit diff
path: root/doc/manual
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-16T13·29+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-16T13·29+0200
commit3c8522cc2271c70a870a9eb69fde142c8cd560c6 (patch)
treeabd2e09d73f822e4587f2d9179c5aadaebe060f0 /doc/manual
parent54adf344a33ef26fc46df9c9947db6129a57a09a (diff)
Fix parallel make of manpages
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/local.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/manual/local.mk b/doc/manual/local.mk
index 223a49b3736a..7a2c36ccebc7 100644
--- a/doc/manual/local.mk
+++ b/doc/manual/local.mk
@@ -40,11 +40,13 @@ man-pages := $(foreach n, \
   nix.conf.5 nix-daemon.8, \
   $(d)/$(n))
 
-$(man-pages): $(d)/manual.xmli $(d)/manual.is-valid
-	$(trace-gen) $(XSLTPROC) --stringparam profile.condition manpage \
+$(firstword $(man-pages)): $(d)/manual.xmli $(d)/manual.is-valid
+	$(trace-gen) $(XSLTPROC) --novalid --stringparam profile.condition manpage \
 	  $(docbookxsl)/profiling/profile.xsl $< 2> /dev/null | \
 	  (cd doc/manual && $(XSLTPROC) $(docbookxsl)/manpages/docbook.xsl -)
 
+$(wordlist 2, $(words $(man-pages)), $(man-pages)): $(firstword $(man-pages))
+
 clean-files += $(d)/*.1 $(d)/*.5 $(d)/*.8
 
 dist-files += $(man-pages)