]> Pileus Git - ~andy/gtk/blob - docs/reference/gdk-pixbuf/Makefile.am
5beb9259ad42b2fec508f82dcbf78b3738691196
[~andy/gtk] / docs / reference / gdk-pixbuf / 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=gdk-pixbuf
8
9 # The top-level SGML file.
10 DOC_MAIN_SGML_FILE=gdk-pixbuf.sgml
11
12 # Extra options to supply to gtkdoc-scan
13 SCAN_OPTIONS=--source-dir=../../../contrib/gdk-pixbuf-xlib --deprecated-guards="GDK_PIXBUF_ENABLE_BROKEN|GDK_PIXBUF_DISABLE_DEPRECATED"
14
15 # The directory containing the source code. Relative to $(srcdir)
16 DOC_SOURCE_DIR=../../../gdk-pixbuf
17
18 # Used for dependencies
19 HFILE_GLOB=$(top_srcdir)/gdk-pixbuf/*.h $(top_srcdir)/contrib/gdk-pixbuf-xlib/*.h
20 CFILE_GLOB=$(top_srcdir)/gdk-pixbuf/*.c $(top_srcdir)/contrib/gdk-pixbuf-xlib/*.c
21
22 # Header files to ignore when scanning
23 IGNORE_HFILES=                          \
24         pixops                          \
25         gdk-pixbuf-alias.h              \
26         gdk-pixbuf-marshal.h            \
27         gdk-pixbuf-xlib-private.h       \
28         gdk-pixbuf-i18n.h               \
29         gdk-pixbuf-private.h            \
30         io-gif-animation.h              \
31         io-ani-animation.h              \
32         xpm-color-table.h               \
33         test-images.h
34
35 INCLUDES =                      \
36         -I$(top_srcdir)         \
37         -I$(top_builddir)       \
38         -I$(top_builddir)/gdk   \
39         $(GTK_DEBUG_FLAGS)      \
40         $(GTK_DEP_CFLAGS)
41
42 GTKDOC_LIBS = \
43         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
44         $(top_builddir)/gdk/$(gdktargetlib)                             \
45         $(top_builddir)/gtk/$(gtktargetlib)                             \
46         $(GTK_DEP_LIBS)
47
48
49 # Extra options to supply to gtkdoc-mkdb
50 MKDB_OPTIONS=--main-sgml-file=$(DOC_MAIN_SGML_FILE) --sgml-mode --source-dir=../../../contrib/gdk-pixbuf-xlib --output-format=xml --name-space=gdk_pixbuf
51
52 # Extra SGML files that are included by DOC_MAIN_SGML_FILE
53 content_files =                         \
54         version.xml                     \
55         gdk-pixbuf-from-drawables.sgml  \
56         gdk-pixbuf-rendering.sgml       \
57         gdk-pixbuf.sgml                 \
58         porting-from-imlib.sgml         \
59         gdk-pixbuf-csource.xml          \
60         gdk-pixbuf-query-loaders.xml
61
62 # Images to copy into HTML directory
63 HTML_IMAGES = composite.png
64
65 # Extra options to supply to gtkdoc-fixref
66 FIXXREF_OPTIONS= --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \
67         --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib
68
69
70 include $(top_srcdir)/gtk-doc.make
71
72 # Other files to distribute
73 EXTRA_DIST += version.xml.in \
74         composite.png \
75         composite.dia \
76         apple-red-1a.png \
77         apple-red-2c.png \
78         gnome-gmush-1.png
79
80 ########################################################################
81
82 if ENABLE_MAN
83
84 man_MANS = gdk-pixbuf-csource.1 gdk-pixbuf-query-loaders.1 
85
86 %.1 : %.xml 
87         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
88
89 BUILT_EXTRA_DIST = $(man_MANS)
90
91 endif
92
93 dist-hook-local: $(BUILT_EXTRA_DIST)
94         files='$(BUILT_EXTRA_DIST)';                            \
95         for f in $$files; do                                    \
96           if test -f $$f; then d=.; else d=$(srcdir); fi;       \
97           cp $$d/$$f $(distdir) || exit 1; done