Skip to content

Commit 5bf5834

Browse files
bwhacksMauro Carvalho Chehab
authored andcommitted
V4L/DVB (13680b): DocBook/media: create links for included sources
If docs are being built in a separate directory, xmlto and xsltproc can't find included sources. Make links back to the source directory. I would much prefer to have xmlto and xsltproc look in the source directory for included entities but couldn't see how to do that. This needs to be solved in some way for 2.6.32, even if this patch isn't the right way to do it. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 49b1465 commit 5bf5834

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎Documentation/DocBook/Makefile‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ PS_METHOD = $(prefer-db2x)
3232

3333
###
3434
# The targets that may be used.
35-
PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs
35+
PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs xmldoclinks
3636

3737
BOOKS := $(addprefix $(obj)/,$(DOCBOOKS))
38-
xmldocs: $(BOOKS)
38+
xmldocs: $(BOOKS) xmldoclinks
3939
sgmldocs: xmldocs
4040

4141
PS := $(patsubst %.xml, %.ps, $(BOOKS))
@@ -55,6 +55,15 @@ mandocs: $(MAN)
5555
build_images = mkdir -p $(objtree)/Documentation/DocBook/media/ && \
5656
cp $(srctree)/Documentation/DocBook/dvb/*.png $(srctree)/Documentation/DocBook/v4l/*.gif $(objtree)/Documentation/DocBook/media/
5757

58+
xmldoclinks:
59+
ifneq ($(objtree),$(srctree))
60+
for dep in dvb media-entities.tmpl media-indices.tmpl v4l; do \
61+
rm -f $(objtree)/Documentation/DocBook/$$dep \
62+
&& ln -s $(srctree)/Documentation/DocBook/$$dep $(objtree)/Documentation/DocBook/ \
63+
|| exit; \
64+
done
65+
endif
66+
5867
installmandocs: mandocs
5968
mkdir -p /usr/local/man/man9/
6069
install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/

0 commit comments

Comments
 (0)