diff options
| author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-15 06:33:47 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-15 06:33:47 -0400 |
| commit | 425efba23509e18e39d0056799004f2005b66b15 (patch) | |
| tree | 5974ef02240a16194c9db3a93427991c56a9b30c /Documentation/DocBook | |
| parent | e6e9c9b238e49e4973391078952b34d3bde3df99 (diff) | |
| parent | 547218864afb2745d9d137f005f3380ef96b26ab (diff) | |
Merge branch 'docs-next' of git://git.lwn.net/linux into devel/docs-next
* 'docs-next' of git://git.lwn.net/linux:
doc-rst: add an option to ignore DocBooks when generating docs
workqueue: Fix a typo in workqueue.txt
Doc: ocfs: Fix typo in filesystems/ocfs2-online-filecheck.txt
Documentation/sphinx: skip build if user requested specific DOCBOOKS
Documentation: add cleanmediadocs to the documentation targets
Diffstat (limited to 'Documentation/DocBook')
| -rw-r--r-- | Documentation/DocBook/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ | |||
| 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 | |||
| 9 | DOCBOOKS := z8530book.xml device-drivers.xml \ | 11 | DOCBOOKS := z8530book.xml device-drivers.xml \ |
| 10 | kernel-hacking.xml kernel-locking.xml deviceiobook.xml \ | 12 | kernel-hacking.xml kernel-locking.xml deviceiobook.xml \ |
| 11 | writing_usb_driver.xml networking.xml \ | 13 | writing_usb_driver.xml networking.xml \ |
| @@ -215,6 +217,20 @@ silent_gen_xml = : | |||
| 215 | -e "s/>/\\>/g"; \ | 217 | -e "s/>/\\>/g"; \ |
| 216 | echo "</programlisting>") > $@ | 218 | echo "</programlisting>") > $@ |
| 217 | 219 | ||
| 220 | else | ||
| 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 | |||
| 218 | ### | 234 | ### |
| 219 | # Help targets as used by the top-level makefile | 235 | # Help targets as used by the top-level makefile |
| 220 | dochelp: | 236 | dochelp: |
| @@ -229,6 +245,9 @@ dochelp: | |||
| 229 | @echo | 245 | @echo |
| 230 | @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml' | 246 | @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml' |
| 231 | @echo ' valid values for DOCBOOKS are: $(DOCBOOKS)' | 247 | @echo ' valid values for DOCBOOKS are: $(DOCBOOKS)' |
| 248 | @echo | ||
| 249 | @echo " make IGNORE_DOCBOOKS=1 [target] Don't generate docs from Docbook" | ||
| 250 | @echo ' This is useful to generate only the ReST docs (Sphinx)' | ||
| 232 | 251 | ||
| 233 | 252 | ||
| 234 | ### | 253 | ### |
