[CRIU] [crtools-bot] make: Fix Documentation/Makefile to not
rebuild man without change
Cyrill Gorcunov
gorcunov at openvz.org
Wed Feb 1 06:12:02 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 7a7315d09bf183428fae52cb82adaef9a877ef63
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Wed Feb 1 15:07:30 2012 +0400
make: Fix Documentation/Makefile to not rebuild man without change
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
Documentation/Makefile | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index d8002e3..46dc502 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -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 "
More information about the CRIU
mailing list