* [PATCH v2] doc-rst: add an option to ignore DocBooks when generating docs
@ 2016-07-09 16:12 Mauro Carvalho Chehab
2016-07-10 5:15 ` Jonathan Corbet
2016-08-04 8:48 ` [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1 Jani Nikula
0 siblings, 2 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2016-07-09 16:12 UTC (permalink / raw)
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab, Jonathan Corbet, Ben Hutchings,
Daniel Vetter, Jani Nikula, Daniel Baluta,
Danilo Cesar Lemes de Paula, linux-doc
Sometimes, we want to do a partial build, instead of building
everything. However, right now, if one wants to build just
Sphinx books, it will build also the DocBooks.
Add an option to allow to ignore all DocBooks when building
documentation.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
---
Documentation/DocBook/Makefile | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 496d4295ec38..01bab5014a4a 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -6,6 +6,8 @@
# To add a new book the only step required is to add the book to the
# list of DOCBOOKS.
+ifeq ($(IGNORE_DOCBOOKS),)
+
DOCBOOKS := z8530book.xml device-drivers.xml \
kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
writing_usb_driver.xml networking.xml \
@@ -215,6 +217,20 @@ silent_gen_xml = :
-e "s/>/\\>/g"; \
echo "</programlisting>") > $@
+else
+
+# Needed, due to cleanmediadocs
+include Documentation/DocBook/media/Makefile
+
+htmldocs:
+pdfdocs:
+psdocs:
+xmldocs:
+installmandocs:
+
+endif # IGNORE_DOCBOOKS
+
+
###
# Help targets as used by the top-level makefile
dochelp:
@@ -229,6 +245,9 @@ dochelp:
@echo
@echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml'
@echo ' valid values for DOCBOOKS are: $(DOCBOOKS)'
+ @echo
+ @echo " make IGNORE_DOCBOOKS=1 [target] Don't generate docs from Docbook"
+ @echo ' This is useful to generate only the ReST docs (Sphinx)'
###
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] doc-rst: add an option to ignore DocBooks when generating docs
2016-07-09 16:12 [PATCH v2] doc-rst: add an option to ignore DocBooks when generating docs Mauro Carvalho Chehab
@ 2016-07-10 5:15 ` Jonathan Corbet
2016-08-04 8:48 ` [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1 Jani Nikula
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2016-07-10 5:15 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Linux Media Mailing List, Mauro Carvalho Chehab, Ben Hutchings,
Daniel Vetter, Jani Nikula, Daniel Baluta,
Danilo Cesar Lemes de Paula, linux-doc
On Sat, 9 Jul 2016 13:12:45 -0300
Mauro Carvalho Chehab <mchehab@s-opensource.com> wrote:
> Sometimes, we want to do a partial build, instead of building
> everything. However, right now, if one wants to build just
> Sphinx books, it will build also the DocBooks.
>
> Add an option to allow to ignore all DocBooks when building
> documentation.
Seems good, applied to the docs tree, thanks.
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1
2016-07-09 16:12 [PATCH v2] doc-rst: add an option to ignore DocBooks when generating docs Mauro Carvalho Chehab
2016-07-10 5:15 ` Jonathan Corbet
@ 2016-08-04 8:48 ` Jani Nikula
2016-08-04 10:23 ` Mauro Carvalho Chehab
2016-08-04 23:09 ` Jonathan Corbet
1 sibling, 2 replies; 5+ messages in thread
From: Jani Nikula @ 2016-08-04 8:48 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc
Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab, Ben Hutchings, Daniel Vetter, Jani Nikula,
Daniel Baluta, Danilo Cesar Lemes de Paula
Instead of a separate ignore flag, use the obvious DOCBOOKS="" to ignore
all DocBook files. This is also in line with the Sphinx build being
ignored if a non-empty DOCBOOKS make variable is specified on the make
command line.
This replaces the IGNORE_DOCBOOKS introduced in
commit 547218864afb2745d9d137f005f3380ef96b26ab
Author: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Date: Sat Jul 9 13:12:45 2016 -0300
doc-rst: add an option to ignore DocBooks when generating docs
and aligns with
commit 6387872c86ea6698ed8faa3ccad1d1bd60f762f7
Author: Jani Nikula <jani.nikula@intel.com>
Date: Fri Jul 1 15:24:44 2016 +0300
Documentation/sphinx: skip build if user requested specific DOCBOOKS
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
Jon, if we agree on the change, I'd like to have this for 4.8 before
IGNORE_DOCBOOKS use proliferates.
---
Documentation/DocBook/Makefile | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 01bab5014a4a..fb32ab85ea3a 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -6,8 +6,6 @@
# To add a new book the only step required is to add the book to the
# list of DOCBOOKS.
-ifeq ($(IGNORE_DOCBOOKS),)
-
DOCBOOKS := z8530book.xml device-drivers.xml \
kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
writing_usb_driver.xml networking.xml \
@@ -19,6 +17,14 @@ DOCBOOKS := z8530book.xml device-drivers.xml \
tracepoint.xml gpu.xml media_api.xml w1.xml \
writing_musb_glue_layer.xml crypto-API.xml iio.xml
+ifeq ($(DOCBOOKS),)
+
+# Skip DocBook build if the user explicitly requested no DOCBOOKS.
+.DEFAULT:
+ @echo " SKIP DocBook $@ target (DOCBOOKS=\"\" specified)."
+
+else
+
include Documentation/DocBook/media/Makefile
###
@@ -217,19 +223,7 @@ silent_gen_xml = :
-e "s/>/\\>/g"; \
echo "</programlisting>") > $@
-else
-
-# Needed, due to cleanmediadocs
-include Documentation/DocBook/media/Makefile
-
-htmldocs:
-pdfdocs:
-psdocs:
-xmldocs:
-installmandocs:
-
-endif # IGNORE_DOCBOOKS
-
+endif # DOCBOOKS=""
###
# Help targets as used by the top-level makefile
@@ -246,7 +240,7 @@ dochelp:
@echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml'
@echo ' valid values for DOCBOOKS are: $(DOCBOOKS)'
@echo
- @echo " make IGNORE_DOCBOOKS=1 [target] Don't generate docs from Docbook"
+ @echo " make DOCBOOKS=\"\" [target] Don't generate docs from Docbook"
@echo ' This is useful to generate only the ReST docs (Sphinx)'
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1
2016-08-04 8:48 ` [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1 Jani Nikula
@ 2016-08-04 10:23 ` Mauro Carvalho Chehab
2016-08-04 23:09 ` Jonathan Corbet
1 sibling, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2016-08-04 10:23 UTC (permalink / raw)
To: Jani Nikula
Cc: Jonathan Corbet, linux-doc, Linux Media Mailing List,
Mauro Carvalho Chehab, Ben Hutchings, Daniel Vetter,
Daniel Baluta, Danilo Cesar Lemes de Paula
Em Thu, 4 Aug 2016 11:48:26 +0300
Jani Nikula <jani.nikula@intel.com> escreveu:
> Instead of a separate ignore flag, use the obvious DOCBOOKS="" to ignore
> all DocBook files. This is also in line with the Sphinx build being
> ignored if a non-empty DOCBOOKS make variable is specified on the make
> command line.
>
> This replaces the IGNORE_DOCBOOKS introduced in
>
> commit 547218864afb2745d9d137f005f3380ef96b26ab
> Author: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> Date: Sat Jul 9 13:12:45 2016 -0300
>
> doc-rst: add an option to ignore DocBooks when generating docs
>
> and aligns with
>
> commit 6387872c86ea6698ed8faa3ccad1d1bd60f762f7
> Author: Jani Nikula <jani.nikula@intel.com>
> Date: Fri Jul 1 15:24:44 2016 +0300
>
> Documentation/sphinx: skip build if user requested specific DOCBOOKS
>
> Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
I also did a local test here, and it behaves as expected. So,
Tested-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
>
> ---
>
> Jon, if we agree on the change, I'd like to have this for 4.8 before
> IGNORE_DOCBOOKS use proliferates.
> ---
> Documentation/DocBook/Makefile | 26 ++++++++++----------------
> 1 file changed, 10 insertions(+), 16 deletions(-)
>
> diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
> index 01bab5014a4a..fb32ab85ea3a 100644
> --- a/Documentation/DocBook/Makefile
> +++ b/Documentation/DocBook/Makefile
> @@ -6,8 +6,6 @@
> # To add a new book the only step required is to add the book to the
> # list of DOCBOOKS.
>
> -ifeq ($(IGNORE_DOCBOOKS),)
> -
> DOCBOOKS := z8530book.xml device-drivers.xml \
> kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
> writing_usb_driver.xml networking.xml \
> @@ -19,6 +17,14 @@ DOCBOOKS := z8530book.xml device-drivers.xml \
> tracepoint.xml gpu.xml media_api.xml w1.xml \
> writing_musb_glue_layer.xml crypto-API.xml iio.xml
>
> +ifeq ($(DOCBOOKS),)
> +
> +# Skip DocBook build if the user explicitly requested no DOCBOOKS.
> +.DEFAULT:
> + @echo " SKIP DocBook $@ target (DOCBOOKS=\"\" specified)."
> +
> +else
> +
> include Documentation/DocBook/media/Makefile
>
> ###
> @@ -217,19 +223,7 @@ silent_gen_xml = :
> -e "s/>/\\>/g"; \
> echo "</programlisting>") > $@
>
> -else
> -
> -# Needed, due to cleanmediadocs
> -include Documentation/DocBook/media/Makefile
> -
> -htmldocs:
> -pdfdocs:
> -psdocs:
> -xmldocs:
> -installmandocs:
> -
> -endif # IGNORE_DOCBOOKS
> -
> +endif # DOCBOOKS=""
>
> ###
> # Help targets as used by the top-level makefile
> @@ -246,7 +240,7 @@ dochelp:
> @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml'
> @echo ' valid values for DOCBOOKS are: $(DOCBOOKS)'
> @echo
> - @echo " make IGNORE_DOCBOOKS=1 [target] Don't generate docs from Docbook"
> + @echo " make DOCBOOKS=\"\" [target] Don't generate docs from Docbook"
> @echo ' This is useful to generate only the ReST docs (Sphinx)'
>
>
Thanks,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1
2016-08-04 8:48 ` [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1 Jani Nikula
2016-08-04 10:23 ` Mauro Carvalho Chehab
@ 2016-08-04 23:09 ` Jonathan Corbet
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2016-08-04 23:09 UTC (permalink / raw)
To: Jani Nikula
Cc: linux-doc, Mauro Carvalho Chehab, Linux Media Mailing List,
Mauro Carvalho Chehab, Ben Hutchings, Daniel Vetter,
Daniel Baluta, Danilo Cesar Lemes de Paula
On Thu, 4 Aug 2016 11:48:26 +0300
Jani Nikula <jani.nikula@intel.com> wrote:
> Instead of a separate ignore flag, use the obvious DOCBOOKS="" to ignore
> all DocBook files.
Makes sense, applied.
Thanks,
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-08-04 23:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-09 16:12 [PATCH v2] doc-rst: add an option to ignore DocBooks when generating docs Mauro Carvalho Chehab
2016-07-10 5:15 ` Jonathan Corbet
2016-08-04 8:48 ` [PATCH] DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1 Jani Nikula
2016-08-04 10:23 ` Mauro Carvalho Chehab
2016-08-04 23:09 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).