mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 22:02:14 +00:00
ce3a3d4404
Set a parameter on the XSLT transform so that callout elements are rendered as text rather than graphics (removes the need to add callout graphics to the build).
163 lines
4.7 KiB
Makefile
163 lines
4.7 KiB
Makefile
SUBDIRS = examples
|
|
|
|
NULL =
|
|
|
|
HTML_DIR = $(datadir)/gtk-doc/html
|
|
TARGET_DIR = $(HTML_DIR)/clutter-cookbook
|
|
|
|
XML_FILES = \
|
|
actors.xml \
|
|
animations.xml \
|
|
events.xml \
|
|
introduction.xml \
|
|
text.xml \
|
|
textures.xml \
|
|
layouts.xml \
|
|
script.xml \
|
|
$(NULL)
|
|
|
|
XSLTOPTS = \
|
|
--stringparam html.stylesheet style.css \
|
|
--stringparam chapter.autolabel 1 \
|
|
--stringparam appendix.autolabel 1 \
|
|
--stringparam section.autolabel 1 \
|
|
--stringparam gtkdoc.bookname "clutter-cookbook" \
|
|
--stringparam gtkdoc.version @CLUTTER_API_VERSION@ \
|
|
--stringparam callout.graphics 0 \
|
|
--path $(top_srcdir)/doc/common \
|
|
--xinclude
|
|
|
|
XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current
|
|
XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
|
|
|
|
HTML_FILES = html/*.html
|
|
CSS_FILES = html/*.css
|
|
IMAGE_FILES = \
|
|
images/clutter-logo.png \
|
|
images/textures-reflection.png \
|
|
images/actors-opacity.png \
|
|
images/actors-opacity-container-affects-opacity.png \
|
|
images/text-shadow.png \
|
|
images/textures-sub-texture.png \
|
|
images/layouts-stacking-diff-actor-sizes.png \
|
|
images/events-pointer-motion-stacking.png \
|
|
$(NULL)
|
|
VIDEO_FILES = \
|
|
videos/animations-fading-out.ogv \
|
|
videos/animations-fading-in-then-out.ogv \
|
|
videos/animations-rotating-x-minus-45.ogv \
|
|
videos/animations-rotating-y-45.ogv \
|
|
videos/animations-rotating-z-90.ogv \
|
|
videos/animations-rotating-x-minus-180-with-y-minus-96.ogv \
|
|
videos/animations-rotating-x-minus-180-with-z-minus-96.ogv \
|
|
videos/animations-rotating-x-centered.ogv \
|
|
videos/animations-rotating-y-centered.ogv \
|
|
videos/animations-rotating-z-centered.ogv \
|
|
videos/animations-rotating-container-reverses-direction.ogv \
|
|
videos/textures-split-go.ogv \
|
|
videos/events-mouse-scroll.ogv \
|
|
videos/textures-crossfade-two-textures.ogv \
|
|
$(NULL)
|
|
|
|
EXTRA_DIST = \
|
|
clutter-cookbook.xml.in \
|
|
recipe-template.xml \
|
|
$(IMAGE_FILES) \
|
|
$(XML_FILES) \
|
|
$(VIDEO_FILES)
|
|
|
|
CLEANFILES = \
|
|
pdf-build.stamp \
|
|
html-build.stamp
|
|
|
|
pdf-build.stamp: clutter-cookbook.xml $(XML_FILES)
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
|
$(JW) -b pdf $(top_builddir)/doc/cookbook/clutter-cookbook.xml \
|
|
&& mv -f clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \
|
|
&& echo timestamp > $(@F)
|
|
|
|
html-build.stamp: clutter-cookbook.xml $(XML_FILES)
|
|
if [ ! -d html ] ; then mkdir html ; fi && \
|
|
if [ ! -d html/images ] ; then mkdir html/images ; fi && \
|
|
if [ ! -d html/videos ] ; then mkdir html/videos ; fi && \
|
|
if [ ! -d html/examples ] ; then mkdir html/examples ; fi && \
|
|
$(XSLTPROC) $(XSLTOPTS) -o clutter-cookbook.html $(XSL_XHTML_URI) $(top_builddir)/doc/cookbook/clutter-cookbook.xml && \
|
|
$(XSLTPROC) $(XSLTOPTS) -o html/ cookbook.xsl $(top_builddir)/doc/cookbook/clutter-cookbook.xml && \
|
|
cp $(top_srcdir)/doc/common/style.css html/ && \
|
|
if [[ "$(VIDEO_FILES)" != "" ]] ; then \
|
|
for file in `ls $(VIDEO_FILES)`; do \
|
|
cp $$file html/videos/ ; \
|
|
done \
|
|
fi && \
|
|
cp images/* html/images/ && \
|
|
cp examples/*.c html/examples/ && \
|
|
echo timestamp > $(@F)
|
|
|
|
if ENABLE_PDFS
|
|
#pdf_target = pdf-build.stamp
|
|
pdf_target =
|
|
else
|
|
pdf_target =
|
|
endif
|
|
|
|
if ENABLE_DOCS
|
|
all-local: html-build.stamp $(pdf_target)
|
|
else
|
|
all-local:
|
|
endif
|
|
|
|
clean-local:
|
|
@rm -rf html ; \
|
|
rm -f *.pdf ; \
|
|
rm -f *.stamp
|
|
|
|
uninstall-local:
|
|
|
|
install-data-local:
|
|
installfiles=`echo ./html/*`; \
|
|
if test "$$installfiles" = './html/*'; \
|
|
then echo '-- Nothing to install' ; \
|
|
else \
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) ; \
|
|
for file in `ls $(HTML_FILES) $(CSS_FILES)`; do \
|
|
if [ -f $$file ]; then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/$$basefile; \
|
|
fi \
|
|
done; \
|
|
fi; \
|
|
if [ -d ./images ]; \
|
|
then \
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images ; \
|
|
for file in `ls $(IMAGE_FILES)`; do \
|
|
if [ -f $$file ]; \
|
|
then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/images/$$basefile; \
|
|
fi \
|
|
done; \
|
|
fi; \
|
|
if [ -d ./videos ] && [[ "$(VIDEO_FILES)" != "" ]] ; \
|
|
then \
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/videos ; \
|
|
for file in `ls $(VIDEO_FILES)`; do \
|
|
if [ -f $$file ]; \
|
|
then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/videos/$$basefile; \
|
|
fi \
|
|
done; \
|
|
fi; \
|
|
$(INSTALL_DATA) html/clutter-cookbook.devhelp $(DESTDIR)$(TARGET_DIR)/clutter-cookbook.devhelp
|
|
|
|
.PHONY : doc
|
|
|
|
COOKBOOK_BASE_PATH = /home/clutter/web/docs.clutter-project.org/docs/clutter-cookbook
|
|
COOKBOOK_VERSION = $(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)
|
|
COOKBOOK_PATH = $(COOKBOOK_BASE_PATH)/$(COOKBOOK_VERSION)
|
|
|
|
publish: html-build.stamp
|
|
scp -r html/* clutter@clutter-project.org:$(COOKBOOK_PATH)
|
|
|
|
.PHONY : publish
|