mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
35627f240f
The "Clutter Cookbook" is a document designed to contain solutions to common problems applications developers might encounter when using Clutter. It is meant as a companion to the API reference but it requires knowledge of the Clutter API and framework.
72 lines
2.1 KiB
Makefile
72 lines
2.1 KiB
Makefile
DOCDIR = $(DESTDIR)/$(datadir)/doc/@PACKAGE@-@CLUTTER_API_VERSION@/cookbook
|
|
HTML_FILES = html/*.html
|
|
IMAGE_FILES = images/*.png
|
|
EXTRA_DIST = \
|
|
version.xml.in \
|
|
cookbook.xsl \
|
|
style.css \
|
|
$(srcdir)/$(IMAGE_FILES)
|
|
CLEANFILES = \
|
|
pdf-build.stamp \
|
|
txt-build.stamp \
|
|
htmldoc-build.stamp
|
|
|
|
pdf-build.stamp: clutter-cookbook.xml
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
|
$(JW) -b pdf $(srcdir)/clutter-cookbook.xml && \
|
|
mv $(srcdir)/clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf && \
|
|
touch pdf-build.stamp
|
|
|
|
txt-build.stamp: clutter-cookbook.xml
|
|
$(XMLTO) txt $(srcdir)/clutter-cookbook.xml && \
|
|
mv $(srcdir)/clutter-cookbook.txt clutter-cookbook-@CLUTTER_MAJORMINOR@.txt && \
|
|
touch txt-build.stamp
|
|
|
|
htmldoc-build.stamp: clutter-cookbook.xml
|
|
$(mkinstalldirs) html && \
|
|
$(XMLTO) -m cookbook.xsl -o html/ xhtml $(srcdir)/clutter-cookbook.xml && \
|
|
cp $(srcdir)/style.css html/ && \
|
|
touch htmldoc-build.stamp
|
|
|
|
doc: txt-build.stamp htmldoc-build.stamp pdf-build.stamp
|
|
|
|
if ENABLE_MANUAL
|
|
all-local: doc
|
|
else
|
|
all-local:
|
|
endif
|
|
|
|
clean-local:
|
|
rm -rf html/*.html
|
|
rm -f html/style.css
|
|
rm -f clutter-cookbook-*.txt
|
|
rm -f *.pdf
|
|
|
|
uninstall-local:
|
|
rm -rf $(DOCDIR);
|
|
|
|
install-data-local:
|
|
installfiles=`echo $(srcdir)/html/*`; \
|
|
if test "$$installfiles" = '$(srcdir)/html/*'; then \
|
|
echo '-- Nothing to install' ; \
|
|
else \
|
|
$(mkinstalldirs) $(DOCDIR)/html/images ; \
|
|
for file in `ls $(srcdir)/$(HTML_FILES)`; do \
|
|
if [ -f $$file ]; then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DOCDIR)/html/$$basefile; \
|
|
fi \
|
|
done; \
|
|
for file in `ls $(srcdir)/$(IMAGE_FILES)`; do \
|
|
if [ -f $$file ]; then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DOCDIR)/html/images/$$basefile; \
|
|
fi \
|
|
done; \
|
|
$(INSTALL_DATA) $(srcdir)/style.css $(DOCDIR)/html/style.css; \
|
|
$(INSTALL_DATA) $(srcdir)/clutter-cookbook-@CLUTTER_MAJORMINOR@.txt $(DOCDIR)/clutter-cookbook-@CLUTTER_MAJORMINOR@.txt; \
|
|
$(INSTALL_DATA) $(srcdir)/clutter-cookbook-@CLUTTER_MAJORMINOR@.pdf $(DOCDIR)/clutter-cookbook-@CLUTTER_MAJORMINOR@.pdf; \
|
|
fi
|
|
|
|
.PHONY : doc
|