summaryrefslogtreecommitdiff
path: root/docs/reference/gdk-pixbuf/Makefile.am
blob: 12f3bb32788687be232c2e67101fdc82529c30cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
AUTOMAKE_OPTIONS = 1.6

# The name of the module.
DOC_MODULE=gdk-pixbuf

# The top-level SGML file.
DOC_MAIN_SGML_FILE=gdk-pixbuf.xml

# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS= \
	--source-dir=../../../contrib/gdk-pixbuf-xlib \
	--deprecated-guards="GDK_PIXBUF_ENABLE_BROKEN|GDK_PIXBUF_DISABLE_DEPRECATED"

# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=../../../gdk-pixbuf

# Used for dependencies
HFILE_GLOB=$(top_srcdir)/gdk-pixbuf/*.h $(top_srcdir)/contrib/gdk-pixbuf-xlib/*.h
CFILE_GLOB=$(top_srcdir)/gdk-pixbuf/*.c $(top_srcdir)/contrib/gdk-pixbuf-xlib/*.c

# Header files to ignore when scanning
IGNORE_HFILES=				\
	pixops				\
	gdk-pixbuf.h			\
	gdk-pixbuf-alias.h		\
	gdk-pixbuf-autocleanups.h	\
	gdk-pixbuf-buffer-queue-private.h \
	gdk-pixbuf-marshal.h		\
	gdk-pixbuf-private.h		\
	gdk-pixbuf-scaled-anim.h	\
	gdk-pixbuf-xlib-private.h	\
	io-ani-animation.h		\
	io-gdip-animation.h		\
	io-gdip-native.h		\
	io-gdip-propertytags.h		\
	io-gdip-utils.h			\
	io-gif-animation.h		\
	xpm-color-table.h		\
	test-images.h

AM_CPPFLAGS = 				\
	-I$(top_srcdir) 		\
	-I$(top_builddir) 		\
	$(GDK_PIXBUF_DEBUG_FLAGS)	\
	$(GDK_PIXBUF_DEP_CFLAGS)

GTKDOC_LIBS = \
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GDK_PIXBUF_API_VERSION).la \
	$(GDK_PIXBUF_DEP_LIBS)


# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS= \
	--main-sgml-file=$(DOC_MAIN_SGML_FILE) 	\
	--source-dir=../../../contrib/gdk-pixbuf-xlib \
	--output-format=xml 			\
	--name-space=gdk_pixbuf

# Extra SGML files that are included by DOC_MAIN_SGML_FILE
content_files =				\
	version.xml			\
	gdk-pixbuf-from-drawables.xml	\
	gdk-pixbuf-rendering.xml	\
	gdk-pixbuf.xml			\
	gdk-pixbuf-csource.xml		\
	gdk-pixbuf-query-loaders.xml

# Images to copy into HTML directory
HTML_IMAGES = composite.png

# Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS= --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \
	--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib


include $(top_srcdir)/gtk-doc.make

# Other files to distribute
EXTRA_DIST += version.xml.in \
	composite.png \
	composite.dia \
	apple-red-1a.png \
	apple-red-2c.png \
	gnome-gmush-1.png

########################################################################

man_MANS = 				\
	gdk-pixbuf-csource.1		\
	gdk-pixbuf-query-loaders.1

if ENABLE_MAN

XSLTPROC_FLAGS = \
        --nonet \
        --stringparam man.output.quietly 1 \
        --stringparam funcsynopsis.style ansi \
        --stringparam man.th.extra1.suppress 1 \
        --stringparam man.authors.section.enabled 0 \
        --stringparam man.copyright.section.enabled 0

.xml.1:
	$(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

dist-local-check-mans-enabled:
	if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi

else

$(man_MANS):
	echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
	echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@


dist-local-check-mans-enabled:
	echo "*** --enable-man must be used in order to make dist"
	false

endif

MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)

EXTRA_DIST += $(man_MANS)

dist-hook-local: dist-local-check-mans-enabled all-local

gtk-docs-clean: clean
	cd $(srcdir) && rm -rf xml html

-include $(top_srcdir)/git.mk