2010-09-21 11:02:41 +00:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
|
2010-07-18 09:53:06 +00:00
|
|
|
SUBDIRS = examples
|
|
|
|
|
2010-07-01 10:29:46 +00:00
|
|
|
NULL =
|
|
|
|
|
2009-09-02 17:11:06 +00:00
|
|
|
HTML_DIR = $(datadir)/gtk-doc/html
|
|
|
|
TARGET_DIR = $(HTML_DIR)/clutter-cookbook
|
|
|
|
|
2010-07-01 10:29:46 +00:00
|
|
|
XML_FILES = \
|
|
|
|
actors.xml \
|
|
|
|
animations.xml \
|
|
|
|
events.xml \
|
|
|
|
introduction.xml \
|
2010-08-03 21:26:14 +00:00
|
|
|
text.xml \
|
2010-07-01 10:29:46 +00:00
|
|
|
textures.xml \
|
2010-08-05 12:43:23 +00:00
|
|
|
layouts.xml \
|
2010-08-26 10:07:54 +00:00
|
|
|
script.xml \
|
2010-07-01 10:29:46 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-07-01 11:17:01 +00:00
|
|
|
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@ \
|
2010-08-26 11:49:59 +00:00
|
|
|
--stringparam callout.graphics 0 \
|
2010-07-01 11:17:01 +00:00
|
|
|
--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
|
|
|
|
|
2010-06-30 10:55:52 +00:00
|
|
|
HTML_FILES = html/*.html
|
2010-07-06 15:22:47 +00:00
|
|
|
CSS_FILES = html/*.css
|
2010-07-16 16:20:38 +00:00
|
|
|
IMAGE_FILES = \
|
|
|
|
images/clutter-logo.png \
|
|
|
|
images/textures-reflection.png \
|
2010-07-15 18:47:53 +00:00
|
|
|
images/actors-opacity.png \
|
2010-07-16 16:23:36 +00:00
|
|
|
images/actors-opacity-container-affects-opacity.png \
|
2010-07-18 09:56:35 +00:00
|
|
|
images/text-shadow.png \
|
2010-08-05 09:58:42 +00:00
|
|
|
images/textures-sub-texture.png \
|
2010-08-05 15:46:36 +00:00
|
|
|
images/layouts-stacking-diff-actor-sizes.png \
|
2010-08-20 12:54:04 +00:00
|
|
|
images/events-pointer-motion-stacking.png \
|
2010-09-16 14:55:21 +00:00
|
|
|
images/layouts-bind-constraint-stage.png \
|
2010-07-16 16:20:38 +00:00
|
|
|
$(NULL)
|
2010-07-16 11:34:44 +00:00
|
|
|
VIDEO_FILES = \
|
|
|
|
videos/animations-fading-out.ogv \
|
|
|
|
videos/animations-fading-in-then-out.ogv \
|
2010-07-21 13:50:32 +00:00
|
|
|
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 \
|
2010-08-05 09:58:42 +00:00
|
|
|
videos/textures-split-go.ogv \
|
2010-08-11 16:10:45 +00:00
|
|
|
videos/events-mouse-scroll.ogv \
|
2010-08-17 14:46:48 +00:00
|
|
|
videos/textures-crossfade-two-textures.ogv \
|
2010-09-03 13:31:44 +00:00
|
|
|
videos/animations-complex.ogv \
|
2010-09-13 13:29:37 +00:00
|
|
|
videos/animations-reuse.ogv \
|
2010-09-23 15:18:29 +00:00
|
|
|
videos/animations-moving-anchors.ogv \
|
|
|
|
videos/animations-moving-depth.ogv \
|
2010-07-16 11:34:44 +00:00
|
|
|
$(NULL)
|
2009-09-02 17:11:06 +00:00
|
|
|
|
2010-07-15 12:27:02 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
clutter-cookbook.xml.in \
|
2010-08-03 20:02:23 +00:00
|
|
|
recipe-template.xml \
|
2010-07-15 12:27:02 +00:00
|
|
|
$(IMAGE_FILES) \
|
|
|
|
$(XML_FILES) \
|
|
|
|
$(VIDEO_FILES)
|
2009-09-02 17:11:06 +00:00
|
|
|
|
2008-12-11 16:57:46 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
pdf-build.stamp \
|
2009-09-03 12:04:59 +00:00
|
|
|
html-build.stamp
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2010-08-03 20:02:23 +00:00
|
|
|
pdf-build.stamp: clutter-cookbook.xml $(XML_FILES)
|
2008-12-11 16:57:46 +00:00
|
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
2010-06-30 10:55:52 +00:00
|
|
|
$(JW) -b pdf $(top_builddir)/doc/cookbook/clutter-cookbook.xml \
|
|
|
|
&& mv -f clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \
|
2009-09-02 17:11:06 +00:00
|
|
|
&& echo timestamp > $(@F)
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2010-08-03 20:02:23 +00:00
|
|
|
html-build.stamp: clutter-cookbook.xml $(XML_FILES)
|
2010-07-15 12:27:02 +00:00
|
|
|
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 && \
|
2010-07-18 09:53:06 +00:00
|
|
|
if [ ! -d html/examples ] ; then mkdir html/examples ; fi && \
|
2010-07-01 11:17:01 +00:00
|
|
|
$(XSLTPROC) $(XSLTOPTS) -o clutter-cookbook.html $(XSL_XHTML_URI) $(top_builddir)/doc/cookbook/clutter-cookbook.xml && \
|
2010-07-15 12:27:02 +00:00
|
|
|
$(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/ && \
|
2010-07-18 09:53:06 +00:00
|
|
|
cp examples/*.c html/examples/ && \
|
2010-07-01 11:17:01 +00:00
|
|
|
echo timestamp > $(@F)
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2009-09-03 12:04:59 +00:00
|
|
|
if ENABLE_PDFS
|
2010-07-01 11:17:01 +00:00
|
|
|
#pdf_target = pdf-build.stamp
|
|
|
|
pdf_target =
|
2009-09-03 12:04:59 +00:00
|
|
|
else
|
|
|
|
pdf_target =
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_DOCS
|
|
|
|
all-local: html-build.stamp $(pdf_target)
|
2008-12-11 16:57:46 +00:00
|
|
|
else
|
|
|
|
all-local:
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean-local:
|
2009-09-03 12:04:59 +00:00
|
|
|
@rm -rf html ; \
|
|
|
|
rm -f *.pdf ; \
|
2009-09-02 17:11:06 +00:00
|
|
|
rm -f *.stamp
|
2008-12-11 16:57:46 +00:00
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
|
|
|
|
install-data-local:
|
2010-06-30 10:55:52 +00:00
|
|
|
installfiles=`echo ./html/*`; \
|
|
|
|
if test "$$installfiles" = './html/*'; \
|
2009-09-02 17:11:06 +00:00
|
|
|
then echo '-- Nothing to install' ; \
|
2008-12-11 16:57:46 +00:00
|
|
|
else \
|
2009-09-02 17:11:06 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) ; \
|
2010-07-06 15:22:47 +00:00
|
|
|
for file in `ls $(HTML_FILES) $(CSS_FILES)`; do \
|
2008-12-11 16:57:46 +00:00
|
|
|
if [ -f $$file ]; then \
|
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
2009-09-02 17:11:06 +00:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/$$basefile; \
|
2008-12-11 16:57:46 +00:00
|
|
|
fi \
|
|
|
|
done; \
|
2009-09-02 17:11:06 +00:00
|
|
|
fi; \
|
2010-06-30 10:55:52 +00:00
|
|
|
if [ -d ./images ]; \
|
2009-09-02 17:11:06 +00:00
|
|
|
then \
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images ; \
|
2010-06-30 10:55:52 +00:00
|
|
|
for file in `ls $(IMAGE_FILES)`; do \
|
2009-09-02 17:11:06 +00:00
|
|
|
if [ -f $$file ]; \
|
|
|
|
then \
|
2008-12-11 16:57:46 +00:00
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
2009-09-02 17:11:06 +00:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/images/$$basefile; \
|
2008-12-11 16:57:46 +00:00
|
|
|
fi \
|
|
|
|
done; \
|
2009-09-02 17:11:06 +00:00
|
|
|
fi; \
|
2010-07-15 12:27:02 +00:00
|
|
|
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; \
|
2010-06-30 16:18:15 +00:00
|
|
|
$(INSTALL_DATA) html/clutter-cookbook.devhelp $(DESTDIR)$(TARGET_DIR)/clutter-cookbook.devhelp
|
2008-12-11 16:57:46 +00:00
|
|
|
|
|
|
|
.PHONY : doc
|
2010-08-14 07:53:18 +00:00
|
|
|
|
|
|
|
COOKBOOK_BASE_PATH = /home/clutter/web/docs.clutter-project.org/docs/clutter-cookbook
|
2010-09-21 11:02:41 +00:00
|
|
|
COOKBOOK_VERSION = $(CLUTTER_API_VERSION)
|
2010-08-14 07:53:18 +00:00
|
|
|
COOKBOOK_PATH = $(COOKBOOK_BASE_PATH)/$(COOKBOOK_VERSION)
|
|
|
|
|
|
|
|
publish: html-build.stamp
|
2010-09-21 11:02:41 +00:00
|
|
|
$(QUIET_CP)scp -r html/* clutter@clutter-project.org:$(COOKBOOK_PATH)
|
2010-08-14 07:53:18 +00:00
|
|
|
|
|
|
|
.PHONY : publish
|