mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
...after commit 1e1bf24
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
29 lines
563 B
Makefile
29 lines
563 B
Makefile
-include ../Makefile.inc
|
|
|
|
ASCIIDOC := asciidoc
|
|
A2X := a2x
|
|
XMLTO := xmlto
|
|
|
|
SRC += criu.txt
|
|
MANS := $(patsubst %.txt,%.8,$(SRC))
|
|
MAN8DIR := $(MANDIR)/man8
|
|
|
|
all: $(MANS)
|
|
|
|
%.8: %.txt
|
|
$(E) " GEN " $@
|
|
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.8,%.xml,$@) $<
|
|
$(Q) $(XMLTO) man --skip-validation $(patsubst %.8,%.xml,$@) 2>/dev/null
|
|
|
|
clean:
|
|
$(E) " CLEAN "
|
|
$(Q) rm -f ./*.xml
|
|
$(Q) rm -f ./*.8
|
|
|
|
install: $(MANS)
|
|
$(E) " INSTALL " $(MANS)
|
|
$(Q) mkdir -p $(DESTDIR)$(MAN8DIR)
|
|
$(Q) install $(MANS) $(DESTDIR)$(MAN8DIR)
|
|
|
|
.PHONY: clean install
|