2009-09-02 13:11:06 -04:00
|
|
|
HTML_DIR = $(datadir)/gtk-doc/html
|
|
|
|
TARGET_DIR = $(HTML_DIR)/clutter-cookbook
|
|
|
|
|
2010-06-30 06:55:52 -04:00
|
|
|
HTML_FILES = html/*.html
|
|
|
|
IMAGE_FILES = images/*.png
|
2009-09-02 13:11:06 -04:00
|
|
|
|
2010-01-03 15:24:39 -05:00
|
|
|
EXTRA_DIST = clutter-cookbook.xml.in
|
2009-09-02 13:11:06 -04:00
|
|
|
|
2008-12-11 11:57:46 -05:00
|
|
|
CLEANFILES = \
|
|
|
|
pdf-build.stamp \
|
2009-09-03 08:04:59 -04:00
|
|
|
html-build.stamp
|
2008-12-11 11:57:46 -05:00
|
|
|
|
|
|
|
pdf-build.stamp: clutter-cookbook.xml
|
|
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
2010-06-30 06:55:52 -04: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 13:11:06 -04:00
|
|
|
&& echo timestamp > $(@F)
|
2008-12-11 11:57:46 -05:00
|
|
|
|
2009-09-02 13:11:06 -04:00
|
|
|
html-build.stamp: clutter-cookbook.xml
|
|
|
|
$(mkinstalldirs) html \
|
2010-06-30 06:55:52 -04:00
|
|
|
&& $(XSLTPROC) --nonet --xinclude -o html \
|
2009-09-03 08:04:59 -04:00
|
|
|
--path $(top_srcdir)/doc/common \
|
2010-06-30 06:55:52 -04:00
|
|
|
--path . \
|
2009-09-02 13:11:06 -04:00
|
|
|
--stringparam gtkdoc.bookname "clutter-cookbook" \
|
|
|
|
--stringparam gtkdoc.version @CLUTTER_API_VERSION@ \
|
2010-06-30 06:55:52 -04:00
|
|
|
ref-html-style.xsl \
|
|
|
|
$(top_builddir)/doc/cookbook/clutter-cookbook.xml \
|
2009-09-02 13:11:06 -04:00
|
|
|
&& echo timestamp > $(@F)
|
2008-12-11 11:57:46 -05:00
|
|
|
|
2009-09-03 08:04:59 -04:00
|
|
|
if ENABLE_PDFS
|
|
|
|
pdf_target = pdf-build.stamp
|
|
|
|
else
|
|
|
|
pdf_target =
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_DOCS
|
|
|
|
all-local: html-build.stamp $(pdf_target)
|
2008-12-11 11:57:46 -05:00
|
|
|
else
|
|
|
|
all-local:
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean-local:
|
2009-09-03 08:04:59 -04:00
|
|
|
@rm -rf html ; \
|
|
|
|
rm -f *.pdf ; \
|
2009-09-02 13:11:06 -04:00
|
|
|
rm -f *.stamp
|
2008-12-11 11:57:46 -05:00
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
|
|
|
|
install-data-local:
|
2010-06-30 06:55:52 -04:00
|
|
|
installfiles=`echo ./html/*`; \
|
|
|
|
if test "$$installfiles" = './html/*'; \
|
2009-09-02 13:11:06 -04:00
|
|
|
then echo '-- Nothing to install' ; \
|
2008-12-11 11:57:46 -05:00
|
|
|
else \
|
2009-09-02 13:11:06 -04:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) ; \
|
2010-06-30 06:55:52 -04:00
|
|
|
for file in `ls $(HTML_FILES)`; do \
|
2008-12-11 11:57:46 -05:00
|
|
|
if [ -f $$file ]; then \
|
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
2009-09-02 13:11:06 -04:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/$$basefile; \
|
2008-12-11 11:57:46 -05:00
|
|
|
fi \
|
|
|
|
done; \
|
2009-09-02 13:11:06 -04:00
|
|
|
fi; \
|
2010-06-30 06:55:52 -04:00
|
|
|
if [ -d ./images ]; \
|
2009-09-02 13:11:06 -04:00
|
|
|
then \
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images ; \
|
2010-06-30 06:55:52 -04:00
|
|
|
for file in `ls $(IMAGE_FILES)`; do \
|
2009-09-02 13:11:06 -04:00
|
|
|
if [ -f $$file ]; \
|
|
|
|
then \
|
2008-12-11 11:57:46 -05:00
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
2009-09-02 13:11:06 -04:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/images/$$basefile; \
|
2008-12-11 11:57:46 -05:00
|
|
|
fi \
|
|
|
|
done; \
|
2009-09-02 13:11:06 -04:00
|
|
|
fi; \
|
2009-09-03 08:04:59 -04:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/doc/common/style.css $(DESTDIR)$(TARGET_DIR)/style.css; \
|
2010-06-30 06:55:52 -04:00
|
|
|
$(INSTALL_DATA) clutter-cookbook.devhelp $(DESTDIR)$(TARGET_DIR)/clutter-cookbook.devhelp
|
2008-12-11 11:57:46 -05:00
|
|
|
|
|
|
|
.PHONY : doc
|