summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-05-22 05:49:05 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-05-22 05:59:21 -0700
commit6db906ca51cc13d752f0b7e3462fd372ef06a49f (patch)
tree42b1fadfc9d373e8f876c77c115c25269c8f7565 /man
parent6b1b26a50be94eef59df0a735a2b4ba0358662a7 (diff)
Only build manpages when xmlto is available
Don't require users to have xmlto and DocBook XML installed just to try pm-utils. However, since the man pages are required for dist, prebuilt pages will be available in the tarballs.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index a95d07e..def6850 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,20 +1,24 @@
-man_MANS = \
+pm_mans = \
on_ac_power.1 \
pm-is-supported.1 \
pm-pmu.8 \
pm-powersave.8 \
pm-action.8
+if HAVE_XMLTO
+man_MANS = $(pm_mans)
+endif
+
EXTRA_DIST = \
on_ac_power.xml \
pm-pmu.xml \
pm-is-supported.xml \
pm-powersave.xml \
pm-action.xml \
- $(man_MANS)
+ $(pm_mans)
MAINTAINERCLEANFILES = \
- $(man_MANS)
+ $(pm_mans)
.xml.1:
$(XMLTO) man $?