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 5aeedb3..1c3763d 100644 (file)
@@ -6,8 +6,11 @@ EXTRA_DIST = lxde-settings.sgml openbox-lxde.sgml
 dist-hook: lxde-settings.1 openbox-lxde.1
 
 lxde-settings.1: lxde-settings.sgml
-       docbook-to-man $< > $@
+       (test -f "`which docbook-to-man`" && docbook-to-man $< > $@) || \
+       (test -f "`which db2man`" && db2man $< > $@) || \
+       (test -f "`which docbook2man`" && docbook2man $< > $@)
 
 openbox-lxde.1: openbox-lxde.sgml
-       docbook-to-man $< > $@
-
+       (test -f "`which docbook-to-man`" && docbook-to-man $< > $@) || \
+       (test -f "`which db2man`" && db2man $< > $@) || \
+       (test -f "`which docbook2man`" && docbook2man $< > $@)