DocBook: only copy stuff to media_api if media xml is generated
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 09:41:40 +0000 (07:41 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 09:46:39 +0000 (07:46 -0200)
commitd01b2d53a5a4db38c7c95651ca9ff23bb930844e
treeb8ae5546d5ea9749e8f8044685f2b602e2b341e4
parent3fb136f3392dfb2530fd490718b0652f1001b36b
DocBook: only copy stuff to media_api if media xml is generated

It is possible to use:
make DOCBOOKS=device-drivers.xml htmldocs

To produce just a few docbooks. In such case, the media docs
won't be built, causing the makefile target to return an error.

While this is ok for human eyes, if the above is used on an script,
it would cause troubles.

Fix it by only creating/filling the media_api directory if the
media_api.xml is found at DOCBOOKS.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Documentation/DocBook/media/Makefile