Initialize the gmime for upstream
[platform/upstream/gmime.git] / docs / reference / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # The name of the module.
4 DOC_MODULE_VERSION = $(GMIME_MAJOR_VERSION).$(GMIME_MINOR_VERSION)
5 DOC_MODULE = gmime
6
7 # The top-level SGML file.
8 DOC_MAIN_SGML_FILE = gmime-docs.sgml
9
10 # The directory containing the source code (if it contains documentation).
11 DOC_SOURCE_DIR = $(top_srcdir)/gmime
12
13 HTML_DIR = $(datadir)/gtk-doc/html
14
15 # Images to copy into HTML directory
16 HTML_IMAGES = 
17
18 # Extra options to supply to gtkdoc-scan
19 SCAN_OPTIONS = --deprecated-guards="GMIME_DISABLE_DEPRECATED"
20
21 # Extra options to pass to gtkdoc-scangobj
22 SCANGOBJ_OPTIONS=--type-init-func="g_mime_init (0)"
23
24 # Extra options to supply to gtkdoc-mkdb
25 MKDB_OPTIONS = --sgml-mode --output-format=xml --ignore-files=trio
26
27 # CFLAGS and LDFLAGS for compiling scan program. Only needed
28 # if $(DOC_MODULE).types is non-empty.
29 INCLUDES = \
30         -I$(top_srcdir)         \
31         -I$(top_builddir)       \
32         -I$(top_builddir)/gmime \
33         $(GLIB_CFLAGS)
34
35 GTKDOC_LIBS =                                   \
36         $(top_builddir)/util/libgmime-util.la           \
37         $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la  \
38         $(GLIB_LIBS)
39
40 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
41 content_files =                         \
42         building.sgml                   \
43         changes-2.0.sgml                \
44         changes-2.2.sgml                \
45         changes-2.4.sgml                \
46         changes-2.6.sgml                \
47         compiling.sgml                  \
48         data-wrappers.sgml              \
49         filters.sgml                    \
50         question_index.sgml             \
51         resources.sgml                  \
52         streams.sgml                    \
53         tree_index.sgml
54
55 # Used for dependencies
56 HFILE_GLOB=$(top_srcdir)/gmime/*.h
57 CFILE_GLOB=$(top_srcdir)/gmime/*.c
58
59 # Header files to ignore when scanning
60 IGNORE_HFILES =                         \
61         gmime-charset-map-private.h     \
62         gmime-table-private.h           \
63         gmime-parse-utils.h             \
64         gmime-common.h                  \
65         gmime-events.h
66
67 # Extra options to supply to gtkdoc-fixref
68 FIXXREF_OPTIONS = 
69
70 include $(top_srcdir)/gtk-doc.make
71
72 # Other files to distribute
73 EXTRA_DIST +=                           \
74         $(DOC_MODULE)-docs.sgml         \
75         gmime.hierarchy
76
77 BUILT_EXTRA_DIST = 
78
79 dist-hook-local: $(BUILT_EXTRA_DIST)
80         files='$(BUILT_EXTRA_DIST)';                            \
81         for f in $$files; do                                    \
82           if test -f $$f; then d=.; else d=$(srcdir); fi;       \
83           cp $$d/$$f $(distdir) || exit 1; done