|
@@ -32,10 +32,10 @@ PS_METHOD = $(prefer-db2x)
|
|
|
|
|
|
###
|
|
###
|
|
# The targets that may be used.
|
|
# The targets that may be used.
|
|
-PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs
|
|
|
|
|
|
+PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs xmldoclinks
|
|
|
|
|
|
BOOKS := $(addprefix $(obj)/,$(DOCBOOKS))
|
|
BOOKS := $(addprefix $(obj)/,$(DOCBOOKS))
|
|
-xmldocs: $(BOOKS)
|
|
|
|
|
|
+xmldocs: $(BOOKS) xmldoclinks
|
|
sgmldocs: xmldocs
|
|
sgmldocs: xmldocs
|
|
|
|
|
|
PS := $(patsubst %.xml, %.ps, $(BOOKS))
|
|
PS := $(patsubst %.xml, %.ps, $(BOOKS))
|
|
@@ -55,6 +55,15 @@ mandocs: $(MAN)
|
|
build_images = mkdir -p $(objtree)/Documentation/DocBook/media/ && \
|
|
build_images = mkdir -p $(objtree)/Documentation/DocBook/media/ && \
|
|
cp $(srctree)/Documentation/DocBook/dvb/*.png $(srctree)/Documentation/DocBook/v4l/*.gif $(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
|
|
installmandocs: mandocs
|
|
mkdir -p /usr/local/man/man9/
|
|
mkdir -p /usr/local/man/man9/
|
|
install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/
|
|
install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/
|