[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] docs, build: Tolerate missing pod2text


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Wed, 10 Oct 2012 22:11:27 +0000
  • Delivery-date: Wed, 10 Oct 2012 22:11:32 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1349801999 -3600
# Node ID f92152f52a853ccf5e9ab2cd81a4fc33a61f444a
# Parent  af59cce8d1fd2a592006e188c3e3b42f5bd56fd0
docs, build: Tolerate missing pod2text

We gate the whole of the "txt" target on pod2text.  I think this is
better than gating only the pod-generated outputs; it avoids a partial
output tree.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r af59cce8d1fd -r f92152f52a85 docs/Makefile
--- a/docs/Makefile     Tue Oct 09 17:59:58 2012 +0100
+++ b/docs/Makefile     Tue Oct 09 17:59:59 2012 +0100
@@ -38,7 +38,10 @@ dev-docs: python-dev-docs
 html: $(DOC_HTML) html/index.html
 
 .PHONY: txt
-txt: $(DOC_TXT)
+txt:
+       @if which $(POD2TEXT) 1>/dev/null 2>/dev/null; then \
+       $(MAKE) $(DOC_TXT); else              \
+       echo "pod2text not installed; skipping text outputs."; fi
 
 .PHONY: figs
 figs:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.