Doc/Makefile: error out if req tools absent

Make sure we have a clear message why build it failing, as there are
repeated questions at criu@ mailing list.

Before this patch:

	[kir@kirpad Documentation]$ make
	  GEN      criu.8
	make: *** [criu.8] Error 127

After:

	[kir@kirpad Documentation]$ make
	/bin/sh: line 1: xmltos: command not found
	make: *** [check] Error 1

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kir Kolyshkin 2014-01-20 14:53:54 +04:00 committed by Pavel Emelyanov
parent d01025edd9
commit 071312d9d5

View file

@ -16,10 +16,15 @@ GROFF_OPTS := -Tps -t -dpaper=$(PAPER) -P-p$(PAPER) \
PSS := $(MANS:%.8=%.ps)
PDFS := $(MANS:%.8=%.pdf)
all: $(MANS)
all: check $(MANS)
ps: $(PSS)
pdf: $(PDFS)
.PHONY: all ps pdf
.PHONY: all ps pdf check
check:
$(Q) for B in $(ASCIIDOC) $(A2X) $(XMLTO); do \
$$B --version > /dev/null || exit 1; \
done
%.8: %.txt
$(E) " GEN " $@