documentation/Makefile: Support for making Eclipse HTML adt manual

This target will generate eclipse help for the adt-manual using
the adt-manual-eclipse-customization.xsl stylesheet.

The output will be generated to a separate directory which can be used
for integrating the documentation into eclipse.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Timo Mueller 2012-11-30 09:59:21 +01:00 committed by Richard Purdie
parent 2586bd854c
commit 733a44d048
1 changed files with 23 additions and 0 deletions

View File

@ -326,6 +326,29 @@ else
endif
eclipse: BASE_DIR = html/$(DOC)/
eclipse:
ifneq ($(DOC),adt-manual)
@echo " "
@echo "ERROR: You can only create eclipse documentation of the"
@echo " Yocto Project Application Development Toolkit (ADT)"
@echo " User's Guide"
@echo " "
else
@echo " "
@echo "******** Building eclipse help of "$(DOC)
@echo " "
cd $(DOC) && \
xsltproc $(XSLTOPTS) \
--stringparam base.dir '$(BASE_DIR)' \
-o eclipse/$(DOC).html \
$(DOC)-eclipse-customization.xsl $(DOC).xml && \
mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \
cp -rf $(FIGURES) eclipse/$(BASE_DIR)/$(FIGURES) && \
cd ..
endif
tarball: html
@echo " "
@echo "******** Creating Tarball of document files"