|
@@ -54,6 +54,7 @@ htmldocs: $(HTML)
|
|
|
|
|
|
MAN := $(patsubst %.xml, %.9, $(BOOKS))
|
|
|
mandocs: $(MAN)
|
|
|
+ $(if $(wildcard $(obj)/man/*.9),gzip -f $(obj)/man/*.9)
|
|
|
|
|
|
installmandocs: mandocs
|
|
|
mkdir -p /usr/local/man/man9/
|
|
@@ -145,7 +146,7 @@ build_main_index = rm -rf $(main_idx); \
|
|
|
cat $(HTML) >> $(main_idx)
|
|
|
|
|
|
quiet_cmd_db2html = HTML $@
|
|
|
- cmd_db2html = xmlto xhtml $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \
|
|
|
+ cmd_db2html = xmlto html $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \
|
|
|
echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/index.html"> \
|
|
|
$(patsubst %.html,%,$(notdir $@))</a><p>' > $@
|
|
|
|
|
@@ -159,7 +160,7 @@ quiet_cmd_db2html = HTML $@
|
|
|
cp $(PNG-$(basename $(notdir $@))) $(patsubst %.html,%,$@); fi
|
|
|
|
|
|
quiet_cmd_db2man = MAN $@
|
|
|
- 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 $< ; fi
|
|
|
%.9 : %.xml
|
|
|
@(which xmlto > /dev/null 2>&1) || \
|
|
|
(echo "*** You need to install xmlto ***"; \
|