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)
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)
%.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)
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 $@