Commit fd4a3244 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[PATCH] docbook: Tell users to install xmlto, not stylesheets

We have at least two users which were confused by these messages, myself
included.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4fa35166
...@@ -101,7 +101,7 @@ quiet_cmd_db2ps = XMLTO $@ ...@@ -101,7 +101,7 @@ quiet_cmd_db2ps = XMLTO $@
cmd_db2ps = xmlto ps $(XMLTOFLAGS) -o $(dir $@) $< cmd_db2ps = xmlto ps $(XMLTOFLAGS) -o $(dir $@) $<
%.ps : %.xml %.ps : %.xml
@(which xmlto > /dev/null 2>&1) || \ @(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \ (echo "*** You need to install xmlto ***"; \
exit 1) exit 1)
$(call cmd,db2ps) $(call cmd,db2ps)
...@@ -109,7 +109,7 @@ quiet_cmd_db2pdf = XMLTO $@ ...@@ -109,7 +109,7 @@ quiet_cmd_db2pdf = XMLTO $@
cmd_db2pdf = xmlto pdf $(XMLTOFLAGS) -o $(dir $@) $< cmd_db2pdf = xmlto pdf $(XMLTOFLAGS) -o $(dir $@) $<
%.pdf : %.xml %.pdf : %.xml
@(which xmlto > /dev/null 2>&1) || \ @(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \ (echo "*** You need to install xmlto ***"; \
exit 1) exit 1)
$(call cmd,db2pdf) $(call cmd,db2pdf)
...@@ -120,7 +120,7 @@ quiet_cmd_db2html = XMLTO $@ ...@@ -120,7 +120,7 @@ quiet_cmd_db2html = XMLTO $@
%.html: %.xml %.html: %.xml
@(which xmlto > /dev/null 2>&1) || \ @(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \ (echo "*** You need to install xmlto ***"; \
exit 1) exit 1)
@rm -rf $@ $(patsubst %.html,%,$@) @rm -rf $@ $(patsubst %.html,%,$@)
$(call cmd,db2html) $(call cmd,db2html)
...@@ -131,7 +131,7 @@ quiet_cmd_db2man = XMLTO $@ ...@@ -131,7 +131,7 @@ quiet_cmd_db2man = XMLTO $@
cmd_db2man = if grep -q refentry $<; then xmlto man $(XMLTOFLAGS) -o $(obj)/man $< ; gzip -f $(obj)/man/*.9; fi cmd_db2man = if grep -q refentry $<; then xmlto man $(XMLTOFLAGS) -o $(obj)/man $< ; gzip -f $(obj)/man/*.9; fi
%.9 : %.xml %.9 : %.xml
@(which xmlto > /dev/null 2>&1) || \ @(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \ (echo "*** You need to install xmlto ***"; \
exit 1) exit 1)
$(call cmd,db2man) $(call cmd,db2man)
@touch $@ @touch $@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment