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 a7fc9d9..316edfa 100644 (file)
@@ -6,8 +6,11 @@ EXTRA_DIST = lxpanel.sgml lxpanelctl.sgml
 dist-hook: lxpanel.1 lxpanelctl.1
 
 lxpanel.1: lxpanel.sgml
-       docbook-to-man $< > $@
+       (test -f "`which docbook-to-man`" && docbook-to-man $< > $@) || \
+       (test -f "`which db2man`" && db2man $< > $@) || \
+       (test -f "`which docbook2man`" && docbook2man $< > $@)
 
 lxpanelctl.1: lxpanelctl.sgml
-       docbook-to-man $< > $@
-        
\ No newline at end of file
+       (test -f "`which docbook-to-man`" && docbook-to-man $< > $@) || \
+       (test -f "`which db2man`" && db2man $< > $@) || \
+       (test -f "`which docbook2man`" && docbook2man $< > $@)