documentation/Makefile: Added conversion of links to other documentation parts.
The script tools/eclipse-help.sed is used to convert links that point to other documentation parts. This avoids having to leave the eclipse help center when clicking these links. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a11f23b4bc
commit
239b469820
|
@ -316,7 +316,11 @@ endif
|
||||||
|
|
||||||
eclipse: BASE_DIR = html/$(DOC)/
|
eclipse: BASE_DIR = html/$(DOC)/
|
||||||
|
|
||||||
eclipse:
|
eclipse: eclipse-generate eclipse-resolve-links
|
||||||
|
|
||||||
|
.PHONY : eclipse-generate eclipse-resolve-links
|
||||||
|
|
||||||
|
eclipse-generate:
|
||||||
ifeq ($(filter $(DOC), adt-manual bsp-guide dev-manual kernel-manual poky-ref-manual yocto-project-qs),)
|
ifeq ($(filter $(DOC), adt-manual bsp-guide dev-manual kernel-manual poky-ref-manual yocto-project-qs),)
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo "ERROR: You can only create eclipse documentation"
|
@echo "ERROR: You can only create eclipse documentation"
|
||||||
|
@ -342,9 +346,19 @@ else
|
||||||
$(DOC)-eclipse-customization.xsl $(DOC).xml && \
|
$(DOC)-eclipse-customization.xsl $(DOC).xml && \
|
||||||
mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \
|
mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \
|
||||||
cp -rf $(FIGURES) eclipse/$(BASE_DIR)/$(FIGURES) && \
|
cp -rf $(FIGURES) eclipse/$(BASE_DIR)/$(FIGURES) && \
|
||||||
cd ..
|
cd ..;
|
||||||
|
|
||||||
|
$(call modify-eclipse)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
eclipse-resolve-links:
|
||||||
|
@echo " "
|
||||||
|
@echo "******** Using eclipse-help.sed to process external links"
|
||||||
|
@echo " "
|
||||||
|
$(foreach FILE, \
|
||||||
|
$(wildcard $(DOC)/eclipse/html/$(DOC)/*.html), \
|
||||||
|
$(shell sed -i -f tools/eclipse-help.sed $(FILE)))
|
||||||
|
|
||||||
tarball: html
|
tarball: html
|
||||||
@echo " "
|
@echo " "
|
||||||
@echo "******** Creating Tarball of document files"
|
@echo "******** Creating Tarball of document files"
|
||||||
|
|
Loading…
Reference in New Issue