glib2.0_2.20.1
[mer:glib2_0.git] / docs / reference / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
3
4 AUTOMAKE_OPTIONS = 1.6
5
6 # The name of the module.
7 DOC_MODULE=glib
8
9 # The top-level SGML file.
10 DOC_MAIN_SGML_FILE=glib-docs.sgml
11
12 # The directory containing the source code. Relative to $(srcdir)
13 DOC_SOURCE_DIR=../../..
14
15 # Extra options to supply to gtkdoc-scan
16 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR"
17
18 # Extra options to supply to gtkdoc-mkdb
19 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g
20
21 # Used for dependencies
22 HFILE_GLOB=$(top_srcdir)/glib/*.h $(top_srcdir)/gmodule/*.h
23 CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c
24
25 # Headers to ignore
26 IGNORE_HFILES=                  \
27         build                   \
28         gobject                 \
29         gio                     \
30         config.h                \
31         gdatasetprivate.h       \
32         glibintl.h              \
33         gbsearcharray.h         \
34         gmoduleconf.h           \
35         gunibreak.h             \
36         gunicomp.h              \
37         gunidecomp.h            \
38         gunichartables.h        \
39         glibconfig-sysdefs.h    \
40         gdebug.h                \
41         gprintfint.h            \
42         galias.h                \
43         gmirroringtable.h       \
44         gscripttable.h          \
45         glib-mirroring-tab      \
46         gnulib                  \
47         pcre                    \
48         update-pcre
49
50 # Images to copy into HTML directory
51 HTML_IMAGES =                           \
52         file-name-encodings.png         \
53         mainloop-states.gif
54
55 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
56 content_files =                         \
57         cross.sgml                      \
58         running.sgml                    \
59         building.sgml                   \
60         changes.sgml                    \
61         compiling.sgml                  \
62         resources.sgml                  \
63         regex-syntax.sgml               \
64         version.xml                     \
65         glib-gettextize.xml             \
66         gtester.xml                     \
67         gtester-report.xml
68
69 # Extra options to supply to gtkdoc-fixref
70 FIXXREF_OPTIONS=
71
72 # include common portion ...
73 include $(top_srcdir)/gtk-doc.make
74
75 # Other files to distribute
76 EXTRA_DIST +=                           \
77         file-name-encodings.png         \
78         file-name-encodings.sxd         \
79         mainloop-states.fig             \
80         mainloop-states.png             \
81         mainloop-states.eps             \
82         version.xml.in
83
84 ########################################################################
85
86 man_MANS =                      \
87         glib-gettextize.1       \
88         gtester.1               \
89         gtester-report.1
90 if ENABLE_MAN
91
92 %.1 : %.xml 
93         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
94
95 endif
96
97 BUILT_EXTRA_DIST = $(man_MANS)
98
99 dist-hook-local: $(BUILT_EXTRA_DIST)
100         files='$(BUILT_EXTRA_DIST)';                            \
101         for f in $$files; do                                    \
102           if test -f $$f; then d=.; else d=$(srcdir); fi;       \
103           cp $$d/$$f $(distdir) || exit 1; done
104