2009-09-02 17:11:06 +00:00
|
|
|
HTML_DIR = $(datadir)/gtk-doc/html
|
|
|
|
TARGET_DIR = $(HTML_DIR)/clutter-cookbook
|
|
|
|
|
|
|
|
HTML_FILES = $(srcdir)/html/*.html
|
|
|
|
IMAGE_FILES = $(srcdir)/images/*.png
|
|
|
|
|
2009-09-03 12:04:59 +00:00
|
|
|
EXTRA_DIST = $(IMAGE_FILES) clutter-cookbook.xml.in
|
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
|
|
|
|
|
|
|
pdf-build.stamp: clutter-cookbook.xml
|
|
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
2009-09-02 17:11:06 +00:00
|
|
|
$(JW) -b pdf $(srcdir)/clutter-cookbook.xml \
|
|
|
|
&& mv -f $(srcdir)/clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \
|
|
|
|
&& echo timestamp > $(@F)
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2009-09-02 17:11:06 +00:00
|
|
|
html-build.stamp: clutter-cookbook.xml
|
|
|
|
$(mkinstalldirs) html \
|
|
|
|
&& $(XSLTPROC) --nonet --xinclude -o $(srcdir)/html/ \
|
2009-09-03 12:04:59 +00:00
|
|
|
--path $(top_srcdir)/doc/common \
|
2009-09-02 17:11:06 +00:00
|
|
|
--path $(srcdir) \
|
|
|
|
--stringparam gtkdoc.bookname "clutter-cookbook" \
|
|
|
|
--stringparam gtkdoc.version @CLUTTER_API_VERSION@ \
|
|
|
|
$(srcdir)/ref-html-style.xsl \
|
|
|
|
$(srcdir)/clutter-cookbook.xml \
|
|
|
|
&& echo timestamp > $(@F)
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2009-09-03 12:04:59 +00: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 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:
|
|
|
|
installfiles=`echo $(srcdir)/html/*`; \
|
2009-09-02 17:11:06 +00:00
|
|
|
if test "$$installfiles" = '$(srcdir)/html/*'; \
|
|
|
|
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) ; \
|
2008-12-11 16:57:46 +00:00
|
|
|
for file in `ls $(srcdir)/$(HTML_FILES)`; do \
|
|
|
|
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; \
|
|
|
|
if [ -d $(srcdir)/images ]; \
|
|
|
|
then \
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images ; \
|
2008-12-11 16:57:46 +00:00
|
|
|
for file in `ls $(srcdir)/$(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; \
|
2009-09-03 12:04:59 +00:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/doc/common/style.css $(DESTDIR)$(TARGET_DIR)/style.css; \
|
2009-09-02 17:11:06 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/html/clutter-cookbook.devhelp $(DESTDIR)$(TARGET_DIR)/clutter-cookbook.devhelp
|
2008-12-11 16:57:46 +00:00
|
|
|
|
|
|
|
.PHONY : doc
|