1
2NULL =
3
4man_MANS =
5
6if ENABLE_MAN
7man_MANS +=                                                                    \
8	udisksctl.1                                                            \
9	$(NULL)
10
11if ENABLE_DAEMON
12man_MANS +=                                                                    \
13	udisksd.8                                                              \
14	udisks.8                                                               \
15	umount.udisks2.8                                                       \
16	udisks2.conf.5                                                         \
17	$(NULL)
18endif # ENABLE_DAEMON
19
20if HAVE_LSM
21man_MANS += udisks2_lsm.conf.5
22endif # HAVE_LSM
23endif # ENABLE_MAN
24
25udisksctl.1 : udisksctl.xml
26	$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
27
28udisks.8 : udisks.xml
29	$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
30
31udisksd.8 : udisksd.xml
32	$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
33
34umount.udisks2.8 : umount.udisks2.xml
35	$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
36
37# Hack: Autotools expand @sysconfdir@ as %{prefix}/etc; that's why we sed this
38# to real prefix, so it doesn't appear like this in the man page.
39udisks2.conf.5.xml: udisks2.conf.5.xml.in
40	$(SED) "s|\$${prefix}|${prefix}|" $< > $@
41
42udisks2.conf.5 : udisks2.conf.5.xml
43	$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
44
45if HAVE_LSM
46# Hack: Autotools expand @sysconfdir@ as %{prefix}/etc; that's why we sed this
47# to real prefix, so it doesn't appear like this in the man page.
48udisks2_lsm.conf.5.xml: udisks2_lsm.conf.5.xml.in
49	$(SED) "s|\$${prefix}|${prefix}|" $< > $@
50
51udisks2_lsm.conf.5 : udisks2_lsm.conf.5.xml
52	$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
53endif # HAVE_LSM
54
55EXTRA_DIST =                                                                   \
56	udisksctl.xml                                                          \
57	udisksd.xml                                                            \
58	udisks2.conf.5.xml                                                     \
59	udisks.xml                                                             \
60	umount.udisks2.xml                                                     \
61	$(NULL)
62
63if HAVE_LSM
64EXTRA_DIST += udisks2_lsm.conf.5.xml
65endif # HAVE_LSM
66
67clean-local:
68	rm -f *~ *.[18]                                                        \
69	udisks2.conf.5                                                        \
70	udisks2.conf.5.xml                                                    \
71	udisks2_lsm.conf.5                                                    \
72	udisks2_lsm.conf.5.xml
73