diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-08-04 04:48:26 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2016-08-04 18:51:33 -0400 |
commit | bdf107d87eb8ce1d1313fee40f3de1a1029a3eca (patch) | |
tree | 4beff9915a73877cce306a079c2d2e072735327c | |
parent | 09c3bcce7c3f640b560df148a3f47d4a3a13dc5e (diff) |
DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1
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: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r-- | Documentation/DocBook/Makefile | 26 |
1 files 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 @@ | |||
6 | # To add a new book the only step required is to add the book to the | 6 | # To add a new book the only step required is to add the book to the |
7 | # list of DOCBOOKS. | 7 | # list of DOCBOOKS. |
8 | 8 | ||
9 | ifeq ($(IGNORE_DOCBOOKS),) | ||
10 | |||
11 | DOCBOOKS := z8530book.xml device-drivers.xml \ | 9 | DOCBOOKS := z8530book.xml device-drivers.xml \ |
12 | kernel-hacking.xml kernel-locking.xml deviceiobook.xml \ | 10 | kernel-hacking.xml kernel-locking.xml deviceiobook.xml \ |
13 | writing_usb_driver.xml networking.xml \ | 11 | writing_usb_driver.xml networking.xml \ |
@@ -19,6 +17,14 @@ DOCBOOKS := z8530book.xml device-drivers.xml \ | |||
19 | tracepoint.xml gpu.xml media_api.xml w1.xml \ | 17 | tracepoint.xml gpu.xml media_api.xml w1.xml \ |
20 | writing_musb_glue_layer.xml crypto-API.xml iio.xml | 18 | writing_musb_glue_layer.xml crypto-API.xml iio.xml |
21 | 19 | ||
20 | ifeq ($(DOCBOOKS),) | ||
21 | |||
22 | # Skip DocBook build if the user explicitly requested no DOCBOOKS. | ||
23 | .DEFAULT: | ||
24 | @echo " SKIP DocBook $@ target (DOCBOOKS=\"\" specified)." | ||
25 | |||
26 | else | ||
27 | |||
22 | include Documentation/DocBook/media/Makefile | 28 | include Documentation/DocBook/media/Makefile |
23 | 29 | ||
24 | ### | 30 | ### |
@@ -217,19 +223,7 @@ silent_gen_xml = : | |||
217 | -e "s/>/\\>/g"; \ | 223 | -e "s/>/\\>/g"; \ |
218 | echo "</programlisting>") > $@ | 224 | echo "</programlisting>") > $@ |
219 | 225 | ||
220 | else | 226 | endif # DOCBOOKS="" |
221 | |||
222 | # Needed, due to cleanmediadocs | ||
223 | include Documentation/DocBook/media/Makefile | ||
224 | |||
225 | htmldocs: | ||
226 | pdfdocs: | ||
227 | psdocs: | ||
228 | xmldocs: | ||
229 | installmandocs: | ||
230 | |||
231 | endif # IGNORE_DOCBOOKS | ||
232 | |||
233 | 227 | ||
234 | ### | 228 | ### |
235 | # Help targets as used by the top-level makefile | 229 | # Help targets as used by the top-level makefile |
@@ -246,7 +240,7 @@ dochelp: | |||
246 | @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml' | 240 | @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml' |
247 | @echo ' valid values for DOCBOOKS are: $(DOCBOOKS)' | 241 | @echo ' valid values for DOCBOOKS are: $(DOCBOOKS)' |
248 | @echo | 242 | @echo |
249 | @echo " make IGNORE_DOCBOOKS=1 [target] Don't generate docs from Docbook" | 243 | @echo " make DOCBOOKS=\"\" [target] Don't generate docs from Docbook" |
250 | @echo ' This is useful to generate only the ReST docs (Sphinx)' | 244 | @echo ' This is useful to generate only the ReST docs (Sphinx)' |
251 | 245 | ||
252 | 246 | ||