aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 5cf621b78c5e..0f9c6ff41aac 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -54,6 +54,7 @@ htmldocs: $(HTML)
54 54
55MAN := $(patsubst %.xml, %.9, $(BOOKS)) 55MAN := $(patsubst %.xml, %.9, $(BOOKS))
56mandocs: $(MAN) 56mandocs: $(MAN)
57 $(if $(wildcard $(obj)/man/*.9),gzip -f $(obj)/man/*.9)
57 58
58installmandocs: mandocs 59installmandocs: mandocs
59 mkdir -p /usr/local/man/man9/ 60 mkdir -p /usr/local/man/man9/
@@ -159,7 +160,7 @@ quiet_cmd_db2html = HTML $@
159 cp $(PNG-$(basename $(notdir $@))) $(patsubst %.html,%,$@); fi 160 cp $(PNG-$(basename $(notdir $@))) $(patsubst %.html,%,$@); fi
160 161
161quiet_cmd_db2man = MAN $@ 162quiet_cmd_db2man = MAN $@
162 cmd_db2man = if grep -q refentry $<; then xmlto man $(XMLTOFLAGS) -o $(obj)/man $< ; gzip -f $(obj)/man/*.9; fi 163 cmd_db2man = if grep -q refentry $<; then xmlto man $(XMLTOFLAGS) -o $(obj)/man $< ; fi
163%.9 : %.xml 164%.9 : %.xml
164 @(which xmlto > /dev/null 2>&1) || \ 165 @(which xmlto > /dev/null 2>&1) || \
165 (echo "*** You need to install xmlto ***"; \ 166 (echo "*** You need to install xmlto ***"; \