criu/Documentation/Makefile
Cyrill Gorcunov 44faee19c1 make: docs -- Append manpages generation
I occasionally used assignments instead of
appending manpages for generation. Fix it.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-02-18 18:42:07 +04:00

21 lines
419 B
Makefile

-include ../Makefile.inc
ASCIIDOC := asciidoc
A2X := a2x
XMLTO := xmlto
SRC += crtools.txt
SRC += Makefile.build.txt
MANS := $(patsubst %.txt,%.1,$(SRC))
all: $(MANS)
%.1: %.txt
$(E) " GEN " $@
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.1,%.xml,$@) $<
$(Q) $(XMLTO) man --skip-validation $(patsubst %.1,%.xml,$@) 2>/dev/null
clean:
$(E) " CLEAN "
$(Q) rm -f ./*.xml
$(Q) rm -f ./*.1