54aa553d0f
Use a modified version of the Poky Handbook CSS for the HTML version of the Cookbook. Promote Elliot as author. Re-license from the GPLv2.0 to the CC BY-NC-SA 2.0.
77 lines
2.0 KiB
Makefile
77 lines
2.0 KiB
Makefile
HTML_DIR = $(datadir)/gtk-doc/html
|
|
TARGET_DIR = $(HTML_DIR)/clutter-cookbook
|
|
|
|
HTML_FILES = html/*.html
|
|
IMAGE_FILES = images/clutter-logo.png
|
|
|
|
EXTRA_DIST = clutter-cookbook.xml.in $(IMAGE_FILES)
|
|
|
|
CLEANFILES = \
|
|
pdf-build.stamp \
|
|
html-build.stamp
|
|
|
|
pdf-build.stamp: clutter-cookbook.xml
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
|
$(JW) -b pdf $(top_builddir)/doc/cookbook/clutter-cookbook.xml \
|
|
&& mv -f clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \
|
|
&& echo timestamp > $(@F)
|
|
|
|
html-build.stamp: clutter-cookbook.xml
|
|
$(mkinstalldirs) html \
|
|
&& $(XSLTPROC) --nonet --xinclude -o ./html/ \
|
|
--path $(top_srcdir)/doc/common \
|
|
--path . \
|
|
--stringparam gtkdoc.bookname "clutter-cookbook" \
|
|
--stringparam gtkdoc.version @CLUTTER_API_VERSION@ \
|
|
ref-html-style.xsl \
|
|
$(top_builddir)/doc/cookbook/clutter-cookbook.xml \
|
|
&& echo timestamp > $(@F)
|
|
|
|
if ENABLE_PDFS
|
|
pdf_target = pdf-build.stamp
|
|
else
|
|
pdf_target =
|
|
endif
|
|
|
|
if ENABLE_DOCS
|
|
all-local: html-build.stamp $(pdf_target)
|
|
else
|
|
all-local:
|
|
endif
|
|
|
|
clean-local:
|
|
@rm -rf html ; \
|
|
rm -f *.pdf ; \
|
|
rm -f *.stamp
|
|
|
|
uninstall-local:
|
|
|
|
install-data-local:
|
|
installfiles=`echo ./html/*`; \
|
|
if test "$$installfiles" = './html/*'; \
|
|
then echo '-- Nothing to install' ; \
|
|
else \
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) ; \
|
|
for file in `ls $(HTML_FILES)`; do \
|
|
if [ -f $$file ]; then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/$$basefile; \
|
|
fi \
|
|
done; \
|
|
fi; \
|
|
if [ -d ./images ]; \
|
|
then \
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images ; \
|
|
for file in `ls $(IMAGE_FILES)`; do \
|
|
if [ -f $$file ]; \
|
|
then \
|
|
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR)/images/$$basefile; \
|
|
fi \
|
|
done; \
|
|
fi; \
|
|
$(INSTALL_DATA) $(top_srcdir)/doc/common/style.css $(DESTDIR)$(TARGET_DIR)/style.css; \
|
|
$(INSTALL_DATA) html/clutter-cookbook.devhelp $(DESTDIR)$(TARGET_DIR)/clutter-cookbook.devhelp
|
|
|
|
.PHONY : doc
|