Skip to contentSkip to conversation

mk: create pdf docs as a separate make target

PATCH NAK John McNamara 2 participants 5 messages Mar 27, 2015 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mk: create pdf docs as a separate make target

This patch separates out the PDF generation from 'make doc' to 'make doc-pdf'. The docs can now be built as follows:

make doc
make doc-pdf

This is to:
* Reduce the PDF dependencies for people who only require the Html docs.
* Speed up the doc build.

---
 mk/rte.sdkdoc.mk  | 2 +-
 mk/rte.sdkroot.mk | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
mk/rte.sdkdoc.mk +1 -1
index 5b44083..b0303f2 100644
@@ -60,7 +60,7 @@ help:
 	@$(MAKE) -rR showconfigs | sed 's,^,\t\t\t\t,'
 
 .PHONY: all
-all: api-html guides-html guides-pdf
+all: api-html guides-html
 
 .PHONY: clean
 clean: api-html-clean guides-html-clean guides-pdf-clean
mk/rte.sdkroot.mk +2 -1
index e8423b0..eace554 100644
@@ -101,9 +101,10 @@ testall:
 install uninstall:
 	$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@
 
-.PHONY: doc help
+.PHONY: doc help doc-pdf
 doc: doc-all
 help: doc-help
+doc-pdf: doc-guides-pdf
 doc-%:
 	$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkdoc.mk $*
 
Signature · 1 line
1.8.1.4
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines

-----Original Message-----
From: Mcnamara, John
Sent: Friday, March 27, 2015 2:35 PM
To: [email protected]
Cc: [email protected]; Mcnamara, John
Subject: [PATCH] mk: create pdf docs as a separate make target

Hi Thomas,

I acked the patch that introduced this change but we've had a number of complaints from devs who don't want to or can't correctly install the (largish) toolchain for PDF generation, or if they do, don't like the extra time it takes.

John

#5 lore raw
In reply to a message not in the archive

2015-03-27 14:34, John McNamara:

Quoted 6 lines

This patch separates out the PDF generation from 'make doc' to 'make doc-pdf'. The docs can now be built as follows:

make doc
make doc-pdf

Quoted 6 lines

This is to:
* Reduce the PDF dependencies for people who only require the Html docs.
* Speed up the doc build.

NACK

PDF can already be built with "make doc-guides-pdf". And HTML can be built with "make doc-guides-html doc-api-html".

When using "make doc", we expect building all docs.

#4 lore raw
In reply to a message not in the archive

2015-03-27 14:40, Mcnamara, John:

Quoted 4 lines

I acked the patch that introduced this change but we've had a number of complaints from devs who don't want to or can't correctly install the (largish) toolchain for PDF generation, or if they do, don't like the extra time it takes.

You forgot to quote my previous explanation.
I don't understand the complaints as they can build only HTML if they want.

#6 lore raw
In reply to Thomas Monjalon
Quoted 8 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, March 27, 2015 3:27 PM
To: Mcnamara, John
Cc: [email protected]
Subject: Re: [PATCH] mk: create pdf docs as a separate make target

Quoted 5 lines

NACK

PDF can already be built with "make doc-guides-pdf". And HTML can be built with "make doc-guides-html doc-api-html".

Hi,

I know that but clearly not everyone does.

Do we document how to build the docs somewhere. If so I can submit a patch outlining the various doc targets and the PDF prerequisites.

John