2007-05-30 23:16:58 +00:00
|
|
|
DOCDIR = $(DESTDIR)/$(datadir)/doc/@PACKAGE@-@CLUTTER_MAJORMINOR@
|
|
|
|
HTML_FILES = html/*.html
|
|
|
|
IMAGE_FILES = images/*.png
|
|
|
|
EXTRA_DIST = clutter-manual.xml.in manual.xsl style.css $(srcdir)/$(IMAGE_FILES)
|
|
|
|
CLEANFILES = pdf-build.stamp txt-build.stamp htmldoc-build.stamp clutter-manual.xml
|
|
|
|
|
|
|
|
pdf-build.stamp: clutter-manual.xml
|
2007-06-16 09:06:03 +00:00
|
|
|
SP_ENCODING=XML SP_CHARSET_FIXED=YES \
|
|
|
|
$(JW) -b pdf $(srcdir)/clutter-manual.xml && \
|
2007-06-14 11:56:35 +00:00
|
|
|
mv $(srcdir)/clutter-manual.pdf clutter-manual-@CLUTTER_MAJORMINOR@.pdf && \
|
2007-05-30 23:16:58 +00:00
|
|
|
touch pdf-build.stamp
|
|
|
|
|
2007-06-14 11:56:35 +00:00
|
|
|
txt-build.stamp: clutter-manual.xml
|
2007-06-16 09:06:03 +00:00
|
|
|
$(XMLTO) txt $(srcdir)/clutter-manual.xml && \
|
2007-06-14 11:56:35 +00:00
|
|
|
mv $(srcdir)/clutter-manual.txt clutter-manual-@CLUTTER_MAJORMINOR@.txt && \
|
2007-06-12 14:02:51 +00:00
|
|
|
touch txt-build.stamp
|
2007-05-30 23:16:58 +00:00
|
|
|
|
|
|
|
htmldoc-build.stamp: clutter-manual.xml
|
2007-06-14 11:56:35 +00:00
|
|
|
$(mkinstalldirs) html && \
|
2007-06-16 09:06:03 +00:00
|
|
|
$(XMLTO) -m manual.xsl -o html/ xhtml $(srcdir)/clutter-manual.xml && \
|
2007-06-14 11:56:35 +00:00
|
|
|
cp $(srcdir)/style.css html/ && \
|
2007-05-30 23:16:58 +00:00
|
|
|
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-manual-*.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-manual-@CLUTTER_MAJORMINOR@.txt $(DOCDIR)/clutter-manual-@CLUTTER_MAJORMINOR@.txt; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/clutter-manual-@CLUTTER_MAJORMINOR@.pdf $(DOCDIR)/clutter-manual-@CLUTTER_MAJORMINOR@.pdf; \
|
|
|
|
fi
|
|
|
|
|
2007-06-14 11:56:35 +00:00
|
|
|
.PHONY : doc
|