From: Andrew Cooper Date: Mon, 8 Jun 2020 17:12:44 +0000 (+0100) Subject: docs: Minor build improvements X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=10ea4e417b4655f3550b6e9645f7f2bad08dba13;p=people%2Fsstabellini%2Fxen-unstable.git%2F.git docs: Minor build improvements Don't use "set -x" for the figs rule. It doesn't take effect in the recursive make environment. Turn the HTML manpage comments into makefile comments, not shell comments. This saves 3x shell invocations per manpage. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich Release-acked-by: Paul Durrant --- diff --git a/docs/Makefile b/docs/Makefile index 3eae2dae60..8de1efb6f5 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -58,7 +58,7 @@ txt: $(DOC_TXT) .PHONY: figs figs: ifneq ($(FIG2DEV),) - set -x; $(MAKE) -C figs + $(MAKE) -C figs else @echo "fig2dev (transfig) not installed; skipping figs." endif @@ -105,12 +105,12 @@ else endif # HTML manpages +# sed used to fix up links between man-pages +# 1) L -> L +# 2) -> html/man/%.$(1).html: man/%.$(1).pod Makefile ifneq ($(POD2HTML),) @$(INSTALL_DIR) $$(@D) - # Fix up links between man-pages - # 1) L -> L - # 2) -> sed -r -e 's%L<([^>]+)\(([1-9])\)>%L<\1(\2)|relative:\1.\2.html>%g' $$< | \ $(POD2HTML) | \ sed -r -e 's%( href=")relative:%\1%g' > $$@