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@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
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: