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