aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/Makefile26
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
9ifeq ($(IGNORE_DOCBOOKS),)
10
11DOCBOOKS := z8530book.xml device-drivers.xml \ 9DOCBOOKS := 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
20ifeq ($(DOCBOOKS),)
21
22# Skip DocBook build if the user explicitly requested no DOCBOOKS.
23.DEFAULT:
24 @echo " SKIP DocBook $@ target (DOCBOOKS=\"\" specified)."
25
26else
27
22include Documentation/DocBook/media/Makefile 28include 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
220else 226endif # DOCBOOKS=""
221
222# Needed, due to cleanmediadocs
223include Documentation/DocBook/media/Makefile
224
225htmldocs:
226pdfdocs:
227psdocs:
228xmldocs:
229installmandocs:
230
231endif # 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