2009-09-03 12:04:59 +00:00
|
|
|
HTML_DIR = $(datadir)/gtk-doc/html
|
|
|
|
TARGET_DIR = $(HTML_DIR)/clutter-manual
|
|
|
|
|
|
|
|
HTML_FILES = $(srcdir)/html/*.html
|
|
|
|
IMAGE_FILES = $(srcdir)/images/*.png
|
|
|
|
|
|
|
|
EXTRA_DIST = $(IMAGE_FILES)
|
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
pdf-build.stamp \
|
|
|
|
html-build.stamp
|
2007-05-30 23:16:58 +00:00
|
|
|
|
|
|
|
pdf-build.stamp: clutter-manual.xml
|
2007-06-16 09:06:03 +00:00
|
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
2010-06-30 10:55:52 +00:00
|
|
|
$(JW) -b pdf $(top_builddir)/doc/manual/clutter-manual.xml \
|
2009-09-03 12:04:59 +00:00
|
|
|
&& mv -f $(srcdir)/clutter-manual.pdf clutter-manual-@CLUTTER_API_VERSION@.pdf \
|
|
|
|
&& echo timestamp > $(@F)
|
2007-05-30 23:16:58 +00:00
|
|
|
|
2009-09-03 12:04:59 +00:00
|
|
|
html-build.stamp: clutter-manual.xml
|
|
|
|
$(mkinstalldirs) html \
|
2010-06-30 10:55:52 +00:00
|
|
|
&& $(XSLTPROC) --nonet --xinclude -o html/ \
|
2009-09-03 12:04:59 +00:00
|
|
|
--path $(top_srcdir)/doc/common \
|
2010-06-30 10:55:52 +00:00
|
|
|
--path . \
|
2009-09-03 12:04:59 +00:00
|
|
|
--stringparam gtkdoc.bookname "clutter-manual" \
|
|
|
|
--stringparam gtkdoc.version @CLUTTER_API_VERSION@ \
|
|
|
|
$(srcdir)/ref-html-style.xsl \
|
2010-06-30 10:55:52 +00:00
|
|
|
$(top_builddir)/doc/manual/clutter-manual.xml \
|
2009-09-03 12:04:59 +00:00
|
|
|
&& echo timestamp > $(@F)
|
2007-05-30 23:16:58 +00:00
|
|
|
|
2009-09-03 12:04:59 +00:00
|
|
|
if ENABLE_PDFS
|
|
|
|
pdf_target = pdf-build.stamp
|
|
|
|
else
|
|
|
|
pdf_target =
|
|
|
|
endif
|
2007-05-30 23:16:58 +00:00
|
|
|
|
2009-09-03 12:04:59 +00:00
|
|
|
if ENABLE_DOCS
|
|
|
|
all-local: html-build.stamp $(pdf_target)
|
2007-05-30 23:16:58 +00:00
|
|
|
else
|
|
|
|
all-local:
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean-local:
|
2009-09-03 12:04:59 +00:00
|
|
|
@rm -rf html ; \
|
|
|
|
rm -f *.pdf ; \
|
|
|
|
rm -f *.stamp
|
2007-05-30 23:16:58 +00:00
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
installfiles=`echo $(srcdir)/html/*`; \
|
2009-09-03 12:04:59 +00:00
|
|
|
if test "$$installfiles" = '$(srcdir)/html/*'; \
|
|
|
|
then echo '-- Nothing to install' ; \
|
2007-05-30 23:16:58 +00:00
|
|
|
else \
|
2009-09-03 12:04:59 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) ; \
|
2007-05-30 23:16:58 +00:00
|
|
|
for file in `ls $(srcdir)/$(HTML_FILES)`; do \
|
|
|
|
if [ -f $$file ]; then \
|
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
2009-09-03 12:04:59 +00:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/$$basefile; \
|
2007-05-30 23:16:58 +00:00
|
|
|
fi \
|
|
|
|
done; \
|
2009-09-03 12:04:59 +00:00
|
|
|
fi; \
|
|
|
|
if [ -d $(srcdir)/images ]; \
|
|
|
|
then \
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images ; \
|
2007-05-30 23:16:58 +00:00
|
|
|
for file in `ls $(srcdir)/$(IMAGE_FILES)`; do \
|
2009-09-03 12:04:59 +00:00
|
|
|
if [ -f $$file ]; \
|
|
|
|
then \
|
2007-05-30 23:16:58 +00:00
|
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
2009-09-03 12:04:59 +00:00
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/images/$$basefile; \
|
2007-05-30 23:16:58 +00:00
|
|
|
fi \
|
|
|
|
done; \
|
2009-09-03 12:04:59 +00:00
|
|
|
fi; \
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/doc/common/style.css $(DESTDIR)$(TARGET_DIR)/style.css; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/html/clutter-manual.devhelp $(DESTDIR)$(TARGET_DIR)/clutter-manual.devhelp
|
2007-05-30 23:16:58 +00:00
|
|
|
|
2007-06-14 11:56:35 +00:00
|
|
|
.PHONY : doc
|