]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
documentation/Makefile: Support for making Eclipse HTML adt manual
authorTimo Mueller <timo.mueller@bmw-carit.de>
Fri, 30 Nov 2012 08:59:21 +0000 (09:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Feb 2013 15:21:49 +0000 (15:21 +0000)
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>
documentation/Makefile

index 60208002308e45181a4f180e2fabaafe3894926e..903f5917e12e468b47ed1cfe9a4e05bd530f0581 100644 (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"