aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-11-23 22:32:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-11-24 11:03:26 +1000
commit36da59d4f699559360556a316a7ee0fd8452a613 (patch)
treebcea5750aed91f8c61499efb95c44f91d244a99a /Makefile.am
parent2552683bcab4b6862ee3b3bb47ff9f9cd722ddc7 (diff)
downloadexternal_evtest-36da59d4f699559360556a316a7ee0fd8452a613.tar.gz
external_evtest-36da59d4f699559360556a316a7ee0fd8452a613.tar.bz2
external_evtest-36da59d4f699559360556a316a7ee0fd8452a613.zip
Asciidoc manpage instead of nroff, add manpage for evtest-capture.
asciidoc has the huge advantage of being human-readable. The generation of the actual manpage is somewhat complicated, but one can link straight to the evtest.txt file in cgit instead of being blamed for bleeding eyes when users look at nroff source. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am24
1 files changed, 22 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index d958c62..784bf52 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,13 +1,33 @@
bin_PROGRAMS = evtest
+man_pages_src = evtest.txt
if HAVE_LIBXML
bin_PROGRAMS += evtest-capture
AM_CFLAGS = $(XML_CFLAGS)
evtest_capture_LDADD = $(XML_LIBS)
+man_pages_src += evtest-capture.txt
endif
+EXTRA_DIST = evtest-create-device.xsl INSTALL
+
+# man page generation.
+if HAVE_DOCTOOLS
+man_pages = $(man_pages_src:.txt=.1)
+
+SUFFIXES = .1 .txt .xml
+
+.xml.1:
+ @$(XMLTO) man $<
+
+.txt.xml:
+ @$(ASCIIDOC) -b docbook -d manpage -o $@ $<
+
+dist_man_MANS = $(man_pages)
+
+EXTRA_DIST += $(man_pages_src) $(man_pages)
+CLEANFILES = $(dist_man_MANS)
+MAINTAINERCLEANFILES = $(man_pages) *.xml
+endif
-man1_MANS = evtest.man
-EXTRA_DIST = $(man1_MANS) evtest-create-device.xsl INSTALL