Skip to content

Commit

Permalink
[PATCH] docbook: Tell users to install xmlto, not stylesheets
Browse files Browse the repository at this point in the history
We have at least two users which were confused by these messages, myself
included.

Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Sam Ravnborg authored and Linus Torvalds committed May 1, 2005
1 parent 4fa3516 commit fd4a324
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/DocBook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ quiet_cmd_db2ps = XMLTO $@
cmd_db2ps = xmlto ps $(XMLTOFLAGS) -o $(dir $@) $<
%.ps : %.xml
@(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \
(echo "*** You need to install xmlto ***"; \
exit 1)
$(call cmd,db2ps)

quiet_cmd_db2pdf = XMLTO $@
cmd_db2pdf = xmlto pdf $(XMLTOFLAGS) -o $(dir $@) $<
%.pdf : %.xml
@(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \
(echo "*** You need to install xmlto ***"; \
exit 1)
$(call cmd,db2pdf)

Expand All @@ -120,7 +120,7 @@ quiet_cmd_db2html = XMLTO $@

%.html: %.xml
@(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \
(echo "*** You need to install xmlto ***"; \
exit 1)
@rm -rf $@ $(patsubst %.html,%,$@)
$(call cmd,db2html)
Expand All @@ -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
%.9 : %.xml
@(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install DocBook stylesheets ***"; \
(echo "*** You need to install xmlto ***"; \
exit 1)
$(call cmd,db2man)
@touch $@
Expand Down

0 comments on commit fd4a324

Please sign in to comment.