Skip to contentSkip to conversation

docs: Minor build improvements

PATCH In review Andrew Cooper 3 participants 3 messages Jun 8, 2020 – Jun 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

For 4.14. Trivial, and docs related.

---
 docs/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
docs/Makefile +4 -4
index 3eae2dae60..8de1efb6f5 100644
@@ -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<xl(1)> -> L<xl(1)|relative:xl.1.html>
+# 2) <a href="relative:xl.1.html"> -> <a href="xl.1.html">
 html/man/%.$(1).html: man/%.$(1).pod Makefile
 ifneq ($(POD2HTML),)
 	@$(INSTALL_DIR) $$(@D)
-	# Fix up links between man-pages
-	# 1) L<xl(1)> -> L<xl(1)|relative:xl.1.html>
-	# 2) <a href="relative:xl.1.html"> -> <a href="xl.1.html">
 	sed -r -e 's%L<([^>]+)\(([1-9])\)>%L<\1(\2)|relative:\1.\2.html>%g' $$< | \
 		$(POD2HTML) | \
 		sed -r -e 's%( href=")relative:%\1%g' > $$@
Signature · 1 line
2.11.0
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Andrew Cooper

Don't use "set -x" for the figs rule. It doesn't take effect in the recursive make environment.

I'd rather view this as an unintended debugging leftover.

Quoted 4 lines

Turn the HTML manpage comments into makefile comments, not shell comments. This saves 3x shell invocations per manpage.

#2 lore raw
Quoted 15 lines

-----Original Message-----
From: Xen-devel <[email protected]> On Behalf Of Jan Beulich
Sent: 09 June 2020 11:42
To: Andrew Cooper <[email protected]>
Cc: Stefano Stabellini <[email protected]>; Julien Grall <[email protected]>; Wei Liu <[email protected]>; Konrad Rzeszutek Wilk <[email protected]>; George Dunlap <[email protected]>; Ian Jackson <[email protected]>; Xen-devel <[email protected]>
Subject: Re: [PATCH for-4.14] docs: Minor build improvements

Quoted 2 lines · Andrew Cooper

Don't use "set -x" for the figs rule. It doesn't take effect in the recursive make environment.

Quoted 8 lines

I'd rather view this as an unintended debugging leftover.

Quoted 4 lines

Turn the HTML manpage comments into makefile comments, not shell comments. This saves 3x shell invocations per manpage.