| 1 |
|
| 2 |
NULL = |
| 3 |
|
| 4 |
man_MANS = |
| 5 |
|
| 6 |
if ENABLE_MAN |
| 7 |
man_MANS += \ |
| 8 |
udisksctl.1 \ |
| 9 |
$(NULL) |
| 10 |
|
| 11 |
if ENABLE_DAEMON |
| 12 |
man_MANS += \ |
| 13 |
udisksd.8 \ |
| 14 |
udisks.8 \ |
| 15 |
umount.udisks2.8 \ |
| 16 |
udisks2.conf.5 \ |
| 17 |
$(NULL) |
| 18 |
endif # ENABLE_DAEMON |
| 19 |
|
| 20 |
if HAVE_LSM |
| 21 |
man_MANS += udisks2_lsm.conf.5 |
| 22 |
endif # HAVE_LSM |
| 23 |
endif # ENABLE_MAN |
| 24 |
|
| 25 |
udisksctl.1 : udisksctl.xml |
| 26 |
$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
| 27 |
|
| 28 |
udisks.8 : udisks.xml |
| 29 |
$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
| 30 |
|
| 31 |
udisksd.8 : udisksd.xml |
| 32 |
$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
| 33 |
|
| 34 |
umount.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. |
| 39 |
udisks2.conf.5.xml: udisks2.conf.5.xml.in |
| 40 |
$(SED) "s|\$${prefix}|${prefix}|" $< > $@ |
| 41 |
|
| 42 |
udisks2.conf.5 : udisks2.conf.5.xml |
| 43 |
$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
| 44 |
|
| 45 |
if 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. |
| 48 |
udisks2_lsm.conf.5.xml: udisks2_lsm.conf.5.xml.in |
| 49 |
$(SED) "s|\$${prefix}|${prefix}|" $< > $@ |
| 50 |
|
| 51 |
udisks2_lsm.conf.5 : udisks2_lsm.conf.5.xml |
| 52 |
$(XSLTPROC) -path "$(builddir)/.." -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< |
| 53 |
endif # HAVE_LSM |
| 54 |
|
| 55 |
EXTRA_DIST = \ |
| 56 |
udisksctl.xml \ |
| 57 |
udisksd.xml \ |
| 58 |
udisks2.conf.5.xml \ |
| 59 |
udisks.xml \ |
| 60 |
umount.udisks2.xml \ |
| 61 |
$(NULL) |
| 62 |
|
| 63 |
if HAVE_LSM |
| 64 |
EXTRA_DIST += udisks2_lsm.conf.5.xml |
| 65 |
endif # HAVE_LSM |
| 66 |
|
| 67 |
clean-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 |