include $(top_srcdir)/common.make # The name of the module. DOC_MODULE = libtranslate # The top-level SGML file. DOC_MAIN_SGML_FILE = libtranslate-docs.sgml # Extra options to supply to gtkdoc-scan SCAN_OPTIONS = --deprecated-guards="TRANSLATE_DISABLE_DEPRECATED" # The directory containing the source code. Relative to $(srcdir) DOC_SOURCE_DIR = ../.. # Used for dependencies HFILE_GLOB = $(top_srcdir)/src/*.h CFILE_GLOB = $(top_srcdir)/src/*.c # Headers to ignore IGNORE_HFILES = *-private.h # CFLAGS and LDFLAGS for compiling scan program. Only needed # if $(DOC_MODULE).types is non-empty. INCLUDES = $(TRANSLATE_CFLAGS) GTKDOC_LIBS = $(top_builddir)/src/libtranslate.la # Extra options to supply to gtkdoc-mkdb MKDB_OPTIONS = --sgml-mode --output-format=xml --ignore-files=trio # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE) content_files = \ example-application.c.xml \ example-service.c.xml \ rfc3066-table.xml \ version.xml # include common portion ... include $(top_srcdir)/docs/gtk-doc.make # Other files to distribute EXTRA_DIST += \ example-application.c \ example-service.c \ lang2xml.sh DISTCLEANFILES = version.xml MAINTAINERCLEANFILES = \ example-application.c.xml \ example-service.c.xml \ rfc3066-table.xml %.c.xml: %.c sed -e 's,&,\&,g; s,<,\<,g; s,>,\>,g' $< > $@ rfc3066-table.xml: $(top_srcdir)/data/iso639-2 $(top_srcdir)/data/rfc3066.sh lang2xml.sh $(top_srcdir)/data/rfc3066.sh < $(top_srcdir)/data/iso639-2 | ./lang2xml.sh > $@