1abs_top_builddir = @abs_top_builddir@
2
3NULL =
4
5# We require automake 1.6 at least.
6AUTOMAKE_OPTIONS = 1.6
7
8# The name of the module, e.g. 'glib'.
9DOC_MODULE=p11-kit
10
11# The top-level SGML file. You can change this if you want to.
12DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
13
14# The directory containing the source code. Relative to $(srcdir).
15# gtk-doc will search all .c & .h files beneath here for inline comments
16# documenting the functions and macros.
17# e.g. DOC_SOURCE_DIR=../../../gtk
18DOC_SOURCE_DIR=$(top_srcdir)/p11-kit
19
20# Extra options to pass to gtkdoc-scangobj. Not normally needed.
21SCANGOBJ_OPTIONS= --version
22
23# Extra options to supply to gtkdoc-scan.
24# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
25SCAN_OPTIONS= --rebuild-types --deprecated-guards="P11_KIT_DISABLE_DEPRECATED"
26
27# Extra options to supply to gtkdoc-mkdb.
28# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
29MKDB_OPTIONS=--sgml-mode --output-format=xml
30
31# Extra options to supply to gtkdoc-mktmpl
32# e.g. MKTMPL_OPTIONS=--only-section-tmpl
33MKTMPL_OPTIONS=
34
35# MKHTML_OPTIONS=--path="$(builddir)/html $(srcdir)/html"
36
37# Extra options to supply to gtkdoc-fixref. Not normally needed.
38# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
39FIXXREF_OPTIONS=
40
41# Used for dependencies. The docs will be rebuilt if any of these change.
42# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
43# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
44HFILE_GLOB=$(top_srcdir)/p11-kit/*.h
45CFILE_GLOB=$(top_srcdir)/p11-kit/*.c
46
47# Header files to ignore when scanning.
48# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
49IGNORE_HFILES= \
50	private.h \
51	pkcs11.h \
52	conf.h \
53	debug.h \
54	dict.h \
55	filter.h \
56	log.h \
57	mock.h \
58	modules.h \
59	pkcs11.h \
60	pkcs11i.h \
61	pkcs11x.h \
62	private.h \
63	client.h \
64	proxy.h \
65	rpc.h \
66	rpc-message.h \
67	util.h \
68	virtual.h \
69	virtual-fixed.h \
70	array.h \
71	compat.h \
72	$(NULL)
73
74# Images to copy into HTML directory.
75# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
76HTML_IMAGES=
77
78generate_files= \
79	version.xml \
80	userdir.xml \
81	sysdir.xml \
82	$(NULL)
83
84# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
85# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
86content_files=p11-kit-config.xml p11-kit-sharing.xml \
87	p11-kit-devel.xml \
88	p11-kit-proxy.xml \
89	p11-kit-trust.xml \
90	p11-kit-remoting.xml \
91	p11-kit.xml \
92	pkcs11.conf.xml \
93	trust.xml \
94	annotation-glossary.xml \
95	$(NULL)
96
97# SGML files where gtk-doc abbreviations (#GtkWidget) are expanded
98# These files must be listed here *and* in content_files
99# e.g. expand_content_files=running.sgml
100expand_content_files= $(generate_files)
101
102# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
103# Only needed if you are using gtkdoc-scangobj to dynamically query widget
104# signals and properties.
105# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
106# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
107GTKDOC_LIBS=
108
109# Hacks around gtk-doc brokenness for out of tree builds
110$(builddir)/p11-kit-sections.txt: $(srcdir)/p11-kit-sections.txt
111	cp $(srcdir)/p11-kit-sections.txt $(builddir)/p11-kit-sections.txt
112$(builddir)/p11-kit-overrides.txt: $(srcdir)/p11-kit-overrides.txt
113	cp $(srcdir)/p11-kit-overrides.txt $(builddir)/p11-kit-overrides.txt
114
115# Generate our files with variables
116sysdir.xml:
117	$(AM_V_GEN) echo -n '$(p11_system_config)' > "$@"
118userdir.xml:
119	$(AM_V_GEN) echo -n '$(p11_user_config)' > "$@"
120version.xml:
121	$(AM_V_GEN) echo -n '$(VERSION)' > "$@"
122
123# This includes the standard gtk-doc make rules, copied by gtkdocize.
124include $(top_srcdir)/build/gtk-doc.make
125
126if ENABLE_GTK_DOC
127man1_MANS = trust.1
128man8_MANS = p11-kit.8
129man5_MANS = pkcs11.conf.5
130
131XSLTPROC_FLAGS = \
132        --nonet \
133        --stringparam man.output.quietly 1 \
134        --stringparam funcsynopsis.style ansi \
135        --stringparam man.th.extra1.suppress 1 \
136        --stringparam man.authors.section.enabled 0 \
137        --stringparam man.copyright.section.enabled 0
138
139XSLTPROC_MAN = \
140	$(XSLTPROC) $(XSLTPROC_FLAGS) --path $(builddir) \
141	http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
142
143trust.1: trust.xml $(generate_files)
144	$(AM_V_GEN) $(XSLTPROC_MAN) $<
145pkcs11.conf.5: pkcs11.conf.xml $(generate_files)
146	$(AM_V_GEN) $(XSLTPROC_MAN) $<
147p11-kit.8: p11-kit.xml $(generate_files)
148	$(AM_V_GEN) $(XSLTPROC_MAN) $<
149
150else # ENABLE_GTK_DOC
151
152man1_MANS =
153man5_MANS =
154man8_MANS =
155
156endif # ENABLE_GTK_DOC
157
158MAN_IN_FILES = \
159	$(man8_MANS:.8=.xml) \
160	$(man5_MANS:.5=.xml) \
161	$(man1_MANS:.1=.xml) \
162	$(NULL)
163
164CLEANFILES += \
165	$(generate_files) \
166	$(man1_MANS) \
167	$(man5_MANS) \
168	$(man8_MANS) \
169	$(NULL)
170
171EXTRA_DIST += \
172	$(MAN_IN_FILES) \
173	$(NULL)
174