Makefile.am 2.77 KB
Newer Older
David Zeuthen's avatar
David Zeuthen committed
1 2 3 4 5 6

NULL =

AUTOMAKE_OPTIONS = 1.7

# The name of the module.
David Zeuthen's avatar
David Zeuthen committed
7
DOC_MODULE=polkit-1
David Zeuthen's avatar
David Zeuthen committed
8 9

# The top-level SGML file.
David Zeuthen's avatar
David Zeuthen committed
10
DOC_MAIN_SGML_FILE=polkit-1-docs.xml
David Zeuthen's avatar
David Zeuthen committed
11 12 13 14 15

# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--ignore-headers=config.h

# The directory containing the source code. Relative to $(srcdir)
16
DOC_SOURCE_DIR=../../src
David Zeuthen's avatar
David Zeuthen committed
17 18

# Used for dependencies
19 20
HFILE_GLOB=$(top_srcdir)/src/polkit*/*.h
CFILE_GLOB=$(top_srcdir)/src/polkit*/*.c
David Zeuthen's avatar
David Zeuthen committed
21 22 23 24 25 26 27 28 29 30 31 32 33

# Headers to ignore
IGNORE_HFILES= \
	$(NULL)

# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
INCLUDES = \
	$(DBUS_GLIB_CFLAGS)					\
	$(GLIB_CFLAGS)						\
	$(GIO_CFLAGS)						\
	-I$(top_srcdir)/src/polkit 				\
	-I$(top_builddir)/src/polkit				\
34 35 36 37
	-I$(top_srcdir)/src/polkitbackend			\
	-I$(top_builddir)/src/polkitbackend			\
	-I$(top_srcdir)/src/polkitagent 			\
	-I$(top_builddir)/src/polkitagent			\
38 39
	-I$(top_srcdir)/src/polkitlocal 			\
	-I$(top_builddir)/src/polkitlocal			\
David Zeuthen's avatar
David Zeuthen committed
40 41 42 43 44 45 46
	$(NULL)

GTKDOC_LIBS = \
	$(DBUS_GLIB_LIBS)					\
	$(GLIB_LIBS)						\
	$(GIO_LIBS)						\
	$(top_builddir)/src/polkit/libpolkit-gobject-1.la	\
47 48
	$(top_builddir)/src/polkitbackend/libpolkit-backend-1.la \
	$(top_builddir)/src/polkitagent/libpolkit-agent-1.la	\
49
	$(top_builddir)/src/polkitlocal/libpolkit-local-1.la	\
David Zeuthen's avatar
David Zeuthen committed
50 51 52
	$(NULL)

# Extra options to supply to gtkdoc-mkdb
53
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=polkit
David Zeuthen's avatar
David Zeuthen committed
54 55 56 57 58

# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS=

# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
59
content_files =  			    								\
60 61
	overview.xml											\
	../extensiondir.xml			    							\
62 63
	../version.xml			    								\
	../../src/polkit/docbook-interface-org.freedesktop.PolicyKit1.Authority.xml			\
64
	../../src/polkit/docbook-interface-org.freedesktop.PolicyKit1.LocalAuthority.xml		\
65
	../../src/polkit/docbook-interface-org.freedesktop.PolicyKit1.AuthenticationAgent.xml		\
David Zeuthen's avatar
David Zeuthen committed
66
	../man/PolicyKit-1.xml										\
67
	../man/pkcheck.xml										\
68 69
	../man/pkaction.xml										\
	../man/pkexec.xml										\
David Zeuthen's avatar
David Zeuthen committed
70 71 72
	$(NULL)

# Images to copy into HTML directory
73 74 75 76
HTML_IMAGES = 						\
	../polkit-architecture.png			\
	../polkit-authentication-agent-example.png	\
	../polkit-authentication-agent-example-wheel.png \
77 78 79
	../pkexec-bash.png				\
	../pkexec-frobnicate.png			\
	../pkexec-frobnicate-da.png			\
David Zeuthen's avatar
David Zeuthen committed
80 81 82 83 84 85 86 87
	$(NULL)

# Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS=

if ENABLE_GTK_DOC
include $(top_srcdir)/gtk-doc.make
else
David Zeuthen's avatar
David Zeuthen committed
88
CLEANFILES =
David Zeuthen's avatar
David Zeuthen committed
89 90
endif

David Zeuthen's avatar
David Zeuthen committed
91
CLEANFILES +=   *~				\
David Zeuthen's avatar
David Zeuthen committed
92 93 94 95 96 97
		polkit-1-scan.*			\
		polkit-1.args			\
		polkit-1.hierarchy		\
		polkit-1.interfaces		\
		polkit-1.prerequisites		\
		polkit-1.signals		\
David Zeuthen's avatar
David Zeuthen committed
98
		*.bak				\
David Zeuthen's avatar
David Zeuthen committed
99 100 101 102 103
		polkit-1-decl-list.txt		\
		polkit-1-decl.txt		\
		polkit-1-overrides.txt		\
		polkit-1-undeclared.txt		\
		polkit-1-undocumented.txt	\
David Zeuthen's avatar
David Zeuthen committed
104 105 106 107
		*.stamp				\
		-rf html xml			\
		$(NULL)