mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-04 07:43:23 +00:00
make: Fix Documentation/Makefile to not rebuild man without change
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
44a05e70ec
commit
7a7315d09b
1 changed files with 6 additions and 5 deletions
|
|
@ -11,14 +11,15 @@ ASCIIDOC := asciidoc
|
|||
A2X := a2x
|
||||
XMLTO := xmlto
|
||||
|
||||
MAN := crtools.txt
|
||||
SRC := crtools.txt
|
||||
MANS := $(patsubst %.txt,%.1,$(SRC))
|
||||
|
||||
all: man
|
||||
all: $(MANS)
|
||||
|
||||
man: $(MAN)
|
||||
%.1: %.txt
|
||||
$(E) " GEN " $@
|
||||
$(Q) $(ASCIIDOC) -b docbook -d manpage -o crtools.xml crtools.txt
|
||||
$(Q) $(XMLTO) man --skip-validation crtools.xml 2>/dev/null
|
||||
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.1,%.xml,$@) $<
|
||||
$(Q) $(XMLTO) man --skip-validation $(patsubst %.1,%.xml,$@) 2>/dev/null
|
||||
|
||||
clean:
|
||||
$(E) " CLEAN "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue