Commit 071312d9 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

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: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d01025ed
......@@ -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 " $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment