Include auto-generate reST header files. BTW fixed linux_tv/Makefile.
Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
TARGETS := $(addprefix $(BUILDDIR)/, $(FILES))
-htmldocs: ${TARGETS}
+htmldocs: $(BUILDDIR) ${TARGETS}
+
+$(BUILDDIR):
+ $(Q)mkdir -p $@
# Rule to convert a .h file to inline RST documentation
$(BUILDDIR)/video.h.rst: ${UAPI}/dvb/video.h ${PARSER} $(SRC_DIR)/video.h.rst.exceptions
@$($(quiet)gen_rst)
-videodev2.h.rst: ${UAPI}/videodev2.h ${PARSER} $(SRC_DIR)/videodev2.h.rst.exceptions
+$(BUILDDIR)/videodev2.h.rst: ${UAPI}/videodev2.h ${PARSER} $(SRC_DIR)/videodev2.h.rst.exceptions
@$($(quiet)gen_rst)
cleandocs:
DVB Audio Header File
*********************
-
-.. toctree::
- :maxdepth: 1
-
- ../../audio.h
+.. include:: ../../../output/audio.h.rst
DVB Conditional Access Header File
**********************************
-
-.. toctree::
- :maxdepth: 1
-
- ../../ca.h
+.. include:: ../../../output/ca.h.rst
DVB Demux Header File
*********************
-
-.. toctree::
- :maxdepth: 1
-
- ../../dmx.h
+.. include:: ../../../output/dmx.h.rst
DVB Frontend Header File
************************
-
-.. toctree::
- :maxdepth: 1
-
- ../../frontend.h
+.. include:: ../../../output/frontend.h.rst
DVB Network Header File
***********************
-
-.. toctree::
- :maxdepth: 1
-
- ../../net.h
+.. include:: ../../../output/net.h.rst
DVB Video Header File
*********************
-
-.. toctree::
- :maxdepth: 1
-
- ../../video.h
+.. include:: ../../../output/video.h.rst
Video For Linux Two Header File
*******************************
-
-.. toctree::
- :maxdepth: 1
-
- ../../videodev2.h
+.. include:: ../../../output/videodev2.h.rst