1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#
# Some common rules for building gnumeric docs.
# These will be changed as the documentation format changes
# but it is a start.
#
# Requires that the calling makefile define 'lang'
docname = gnumeric
if WITH_GNOME
omffile = gnumeric-$(lang).omf
endif
gnumeric_docdir = $(top_srcdir)/doc
entities += functions.xml
functions.xml: func.defs $(gnumeric_docdir)/make-func-list.pl func-header.xml func-footer.xml
cat $(srcdir)/func-header.xml > $$$$.functmp ; \
perl $(gnumeric_docdir)/make-func-list.pl func.defs >> $$$$.functmp ; \
cat $(srcdir)/func-footer.xml >> $$$$.functmp ; \
if xmllint --format --encode "UTF-8" $$$$.functmp > "$@" ; then \
rm $$$$.functmp; \
fi
func.defs: $(top_builddir)/src/gnumeric
LC_ALL="$(locale)" ; export LC_ALL ; $(top_builddir)/src/gnumeric --dump-func-defs="$@"
include $(top_srcdir)/xmldocs.make
# include generated files to simplify installation
EXTRA_DIST += \
func.defs \
functions.xml \
func-header.xml func-footer.xml
# functions.xml # an entity, shipped via xmldocs.make
.PHONY : html
html :
-mkdir -p html
xsltproc -o html/index.html \
--param db.chunk.chunk_top 0 \
--param db.chunk.max_depth 3 \
--stringparam db.chunk.basename gnumeric \
--stringparam db2html.admon.graphics_path stylesheet/ \
$(datadir)/xml/gnome/xslt/docbook/html/db2html.xsl \
$(srcdir)/gnumeric.xml
|