0ae3eca3e1962319114c37262864da4af249b99b
[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         gdatasetprivate.h       \
26         glibintl.h              \
27         gbsearcharray.h         \
28         gmoduleconf.h           \
29         gunibreak.h             \
30         gunicomp.h              \
31         gunidecomp.h            \
32         gunichartables.h        \
33         glibconfig-sysdefs.h    \
34         gdebug.h                \
35         gprintfint.h            \
36         galias.h                \
37         gmirroringtable.h       \
38         gscripttable.h          \
39         glib-mirroring-tab      \
40         gnulib
41
42 # Extra options to supply to gtkdoc-mkdb
43 MKDB_OPTIONS=--sgml-mode --output-format=xml --ignore-files=trio
44
45 # Images to copy into HTML directory
46 HTML_IMAGES =                           \
47         file-name-encodings.png         \
48         mainloop-states.gif
49
50 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
51 content_files =                         \
52         cross.sgml                      \
53         running.sgml                    \
54         building.sgml                   \
55         changes.sgml                    \
56         compiling.sgml                  \
57         resources.sgml                  \
58         version.xml                     \
59         glib-gettextize.xml
60
61 # Extra options to supply to gtkdoc-fixref
62 FIXXREF_OPTIONS=
63
64 # include common portion ...
65 include $(top_srcdir)/gtk-doc.make
66
67 # Other files to distribute
68 EXTRA_DIST +=                           \
69         file-name-encodings.png         \
70         file-name-encodings.sxd         \
71         mainloop-states.fig             \
72         mainloop-states.png             \
73         mainloop-states.eps             \
74         version.xml.in
75
76 ########################################################################
77
78 man_MANS = glib-gettextize.1 
79
80 if ENABLE_MAN
81
82 %.1 : %.xml 
83         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
84
85 endif
86
87 BUILT_EXTRA_DIST = $(man_MANS)
88
89 dist-hook-local: $(BUILT_EXTRA_DIST)
90         files='$(BUILT_EXTRA_DIST)';                            \
91         for f in $$files; do                                    \
92           if test -f $$f; then d=.; else d=$(srcdir); fi;       \
93           cp $$d/$$f $(distdir) || exit 1; done
94