Use other docbook to manpage tools.
authorYing-Chun Liu (PaulLiu) <grandpaul@gmail.com>
Tue, 14 Apr 2009 19:39:14 +0000 (19:39 +0000)
committerYing-Chun Liu (PaulLiu) <grandpaul@gmail.com>
Tue, 14 Apr 2009 19:39:14 +0000 (19:39 +0000)
Thanks to Alfred Peng for the patch.
Closes Bug ID: 2688183

man/Makefile.am

index af887a3..3e3b8ed 100644 (file)
@@ -6,4 +6,6 @@ EXTRA_DIST = lxappearance.sgml
 dist-hook: lxappearance.1
 
 lxappearance.1: lxappearance.sgml
-       docbook-to-man $< > $@
+       (test -f "`which docbook-to-man`" && docbook-to-man $< > $@) || \
+       (test -f "`which db2man`" && db2man $< > $@) || \
+       (test -f "`which docbook2man`" && docbook2man $< > $@)