]> git.karo-electronics.de Git - linux-beck.git/commitdiff
doc-rst: linux_tv/Makefile: Honor quiet make O=dir
authorMarkus Heiser <markus.heiser@darmarIT.de>
Fri, 8 Jul 2016 12:15:05 +0000 (14:15 +0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 12:31:05 +0000 (09:31 -0300)
To honor the:

  make O=dir [targets] Locate all output files in "dir"

* activate kernel-include directive
* export BUILDDIR=$(BUILDDIR)
* linux_tv: replace '.. include::' with '.. kernel-include:: $BUILDDIR/<foo.h.rst>'

Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/Makefile.sphinx
Documentation/conf.py
Documentation/linux_tv/media/dvb/audio_h.rst
Documentation/linux_tv/media/dvb/ca_h.rst
Documentation/linux_tv/media/dvb/dmx_h.rst
Documentation/linux_tv/media/dvb/frontend_h.rst
Documentation/linux_tv/media/dvb/net_h.rst
Documentation/linux_tv/media/dvb/video_h.rst
Documentation/linux_tv/media/v4l/videodev.rst

index 6a093e4397b44e711aa64f49c3dfb7f61ad7e067..5aa2161fc3dfb542da12e3f47860aa3aa83fb431 100644 (file)
@@ -32,10 +32,10 @@ ALLSPHINXOPTS   = -D version=$(KERNELVERSION) -D release=$(KERNELRELEASE) -d $(B
 I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
 quiet_cmd_sphinx = SPHINX  $@
-      cmd_sphinx = $(SPHINXBUILD) -b $2 $(ALLSPHINXOPTS) $(BUILDDIR)/$2
+      cmd_sphinx = BUILDDIR=$(BUILDDIR) $(SPHINXBUILD) -b $2 $(ALLSPHINXOPTS) $(BUILDDIR)/$2
 
 htmldocs:
-       $(MAKE) BUILDDIR=$(objtree)/$(BUILDDIR) -f $(srctree)/Documentation/linux_tv/Makefile $@
+       $(MAKE) BUILDDIR=$(BUILDDIR) -f $(srctree)/Documentation/linux_tv/Makefile $@
        $(call cmd,sphinx,html)
 
 pdfdocs:
index f35748b4bc261adddca9b38b12f7a5926fd59463..224240b5bc50a910359d4c10672ff6ebbcdcc859 100644 (file)
@@ -28,7 +28,7 @@ sys.path.insert(0, os.path.abspath('sphinx'))
 # Add any Sphinx extension module names here, as strings. They can be
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
-extensions = ['kernel-doc', 'rstFlatTable']
+extensions = ['kernel-doc', 'rstFlatTable', 'kernel_include']
 
 # Gracefully handle missing rst2pdf.
 try:
index d87be5e2b02259e02db89ba7d58ee4087ff61061..0ea0b41b20aef09fb58ca28892718204b5f1400f 100644 (file)
@@ -6,4 +6,6 @@
 DVB Audio Header File
 *********************
 
-.. include:: ../../../output/audio.h.rst
+.. kernel-include:: $BUILDDIR/audio.h.rst
+
+.. kernel-include:: $BUILDDIR/../../../../etc/adduser.conf
index 407f840ae2ee177781b55617dcb465dfa7fead6a..f513592ef52967d5121b536ae52686e8b994989c 100644 (file)
@@ -6,4 +6,4 @@
 DVB Conditional Access Header File
 **********************************
 
-.. include:: ../../../output/ca.h.rst
+.. kernel-include:: $BUILDDIR/ca.h.rst
index 65ee8f095972cea251bb312f81bddf11864ee8f9..4fd1704a0833cb2f1538b70ea5fa3c840a3d824b 100644 (file)
@@ -6,4 +6,4 @@
 DVB Demux Header File
 *********************
 
-.. include:: ../../../output/dmx.h.rst
+.. kernel-include:: $BUILDDIR/dmx.h.rst
index 97735b241f3c1546f6b8ed5c234f071022c9a078..15fca04d1c3207062144424df88b2b055845045a 100644 (file)
@@ -6,4 +6,4 @@
 DVB Frontend Header File
 ************************
 
-.. include:: ../../../output/frontend.h.rst
+.. kernel-include:: $BUILDDIR/frontend.h.rst
index 5a5a797882f212756565af58d15bfd7963717434..7bcf5ba9d1ebbee19fe58422d2ad7bb9d0186892 100644 (file)
@@ -6,4 +6,4 @@
 DVB Network Header File
 ***********************
 
-.. include:: ../../../output/net.h.rst
+.. kernel-include:: $BUILDDIR/net.h.rst
index 9d649a7e0f8b7e923c88ccfda4a7a6902d482997..3f39b0c4879c2ae5615f3f64ff586c3094fe55be 100644 (file)
@@ -6,4 +6,4 @@
 DVB Video Header File
 *********************
 
-.. include:: ../../../output/video.h.rst
+.. kernel-include:: $BUILDDIR/video.h.rst
index 82bac4a0b76024b1744eebf0125f43d66ed69c5a..b9ee4672d639ec30ad8d78986688d7d567095504 100644 (file)
@@ -6,4 +6,4 @@
 Video For Linux Two Header File
 *******************************
 
-.. include:: ../../../output/videodev2.h.rst
+.. kernel-include:: $BUILDDIR/videodev2.h.rst