From: Randy Dunlap <randy.dunlap@oracle.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCHv2 2/4] DocBook: Add rules to auto-generate some media docbooks
Date: Thu, 25 Feb 2010 11:37:14 -0800 [thread overview]
Message-ID: <4B86D16A.5080400@oracle.com> (raw)
In-Reply-To: <20100225143327.435bc37c@pedra>
On 02/25/10 09:33, Mauro Carvalho Chehab wrote:
> There are some files that are automatically generated by the old
> subsystem Makefile. Move those rules to kernel DocBook Makefile, in
> order to autogenerate the media cross-reference files:
> media-entities.tmpl
> media-indices.tmpl
> dvb/frontend.h.xml
> v4l/videodev2.h.xml
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
>
> Fix makefile
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
>
> delete mode 100644 Documentation/DocBook/dvb/frontend.h.xml
> delete mode 100644 Documentation/DocBook/media-entities.tmpl
> delete mode 100644 Documentation/DocBook/media-indices.tmpl
> delete mode 100644 Documentation/DocBook/v4l/videodev2.h.xml
>
> diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
> index 7c590ef..36068db 100644
> --- a/Documentation/DocBook/Makefile
> +++ b/Documentation/DocBook/Makefile
> @@ -6,6 +6,8 @@
> # To add a new book the only step required is to add the book to the
> # list of DOCBOOKS.
>
> +TMPMEDIA=.tmpmedia
> +
> DOCBOOKS := z8530book.xml mcabook.xml device-drivers.xml \
> kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
> writing_usb_driver.xml networking.xml \
> @@ -14,7 +16,7 @@ DOCBOOKS := z8530book.xml mcabook.xml device-drivers.xml \
> genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
> mac80211.xml debugobjects.xml sh.xml regulator.xml \
> alsa-driver-api.xml writing-an-alsa-driver.xml \
> - tracepoint.xml media.xml
> + tracepoint.xml $(TMPMEDIA)/media.xml
>
> ###
> # The build process is as follows (targets):
> @@ -32,10 +34,10 @@ PS_METHOD = $(prefer-db2x)
>
> ###
> # The targets that may be used.
> -PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs xmldoclinks
> +PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs mediaprep
>
> BOOKS := $(addprefix $(obj)/,$(DOCBOOKS))
> -xmldocs: $(BOOKS) xmldoclinks
> +xmldocs: $(BOOKS)
> sgmldocs: xmldocs
>
> PS := $(patsubst %.xml, %.ps, $(BOOKS))
> @@ -47,24 +49,11 @@ pdfdocs: $(PDF)
> HTML := $(sort $(patsubst %.xml, %.html, $(BOOKS)))
> htmldocs: $(HTML)
> @$($(quiet)cmd_build_main_index)
> - @$($(call build_main_index))
> - @($(call build_images))
> + @($(call build_main_index))
>
> MAN := $(patsubst %.xml, %.9, $(BOOKS))
> mandocs: $(MAN)
>
> -build_images = mkdir -p $(objtree)/Documentation/DocBook/media/ && \
> - cp $(srctree)/Documentation/DocBook/dvb/*.png $(srctree)/Documentation/DocBook/v4l/*.gif $(objtree)/Documentation/DocBook/media/
> -
> -xmldoclinks:
> -ifneq ($(objtree),$(srctree))
> - for dep in dvb media-entities.tmpl media-indices.tmpl v4l; do \
> - rm -f $(objtree)/Documentation/DocBook/$$dep \
> - && ln -s $(srctree)/Documentation/DocBook/$$dep $(objtree)/Documentation/DocBook/ \
> - || exit; \
> - done
> -endif
> -
> installmandocs: mandocs
> mkdir -p /usr/local/man/man9/
> install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/
> @@ -100,7 +89,7 @@ endef
> $(call if_changed_rule,docproc)
>
> ###
> -#Read in all saved dependency files
> +#Read in all saved dependency files
> cmd_files := $(wildcard $(foreach f,$(BOOKS),$(dir $(f)).$(notdir $(f)).cmd))
>
> ifneq ($(cmd_files),)
> @@ -151,7 +140,7 @@ quiet_cmd_build_main_index = echo ' BUILD $@'
>
> index = index.html
> main_idx = Documentation/DocBook/$(index)
> -build_main_index = rm -rf $(main_idx) && \
> +build_main_index = rm -rf $(main_idx); \
> echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \
> echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \
> cat $(HTML) >> $(main_idx)
> @@ -241,7 +230,7 @@ clean-files := $(DOCBOOKS) \
> $(patsubst %.xml, %.9, $(DOCBOOKS)) \
> $(index)
>
> -clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man
> +clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man $(MEDIADIR)
>
> cleandocs:
> $(Q)rm -f $(call objectify, $(clean-files))
> @@ -251,3 +240,498 @@ cleandocs:
> # information in a variable se we can use it in if_changed and friends.
>
> .PHONY: $(PHONY)
> +
> +
> +#
> +# Media build rules - Auto-generates media contents/indexes and *.h xml's
> +#
> +
> +SHELL=/bin/bash
> +
> +MEDIA_DIR=$(objtree)/Documentation/DocBook/$(TMPMEDIA)
1/ The top-level html documentation index file now begins with "media".
They are supposed to be in alphabetical order.
(This is minor, won't hold up the merge.)
Linux Kernel HTML Documentation
Kernel Version: 2.6.33
media
alsa-driver-api
debugobjects
device-drivers
deviceiobook
filesystems
etc.
2/ Clicking on "media" in the index list above gets a "file not found" error,
I think because TMPMEDIA=.tmpmedia and it's never copied to the correct output
directory.
Ah, there is a media/ dir under .tmpmedia and it contains index.html.
Note quite correct directory structure there.
Well, it's better, but it's not quite ready...
Yes, when I ack the patches, you can merge them thru the media tree.
--
~Randy
next prev parent reply other threads:[~2010-02-25 19:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c541522de5dec33a56dbe94a26fadf400fd7e536.1267119175.git.mchehab@redhat.com>
2010-02-25 17:33 ` [PATCHv2 2/4] DocBook: Add rules to auto-generate some media docbooks Mauro Carvalho Chehab
2010-02-25 19:37 ` Randy Dunlap [this message]
2010-02-25 17:33 ` [PATCHv2 4/4] V4L/DVB: v4l: document new Bayer and monochrome pixel formats Mauro Carvalho Chehab
2010-02-25 17:33 ` [PATCHv2 3/4] DocBook/v4l/pixfmt.xml: Add missing formats for gspca cpia1 and sn9c2028 drivers Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B86D16A.5080400@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox