From 6fc005d5e1120b376ec02b7f4a6c1554835749b2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 5 Jan 2011 13:38:03 +1000 Subject: Add man-pages for the various evemu-tools. Using asciidoc and xmlto, conditional on their availability at configure time. Signed-off-by: Peter Hutterer Signed-off-by: Henrik Rydberg --- tools/Makefile.am | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tools/Makefile.am') diff --git a/tools/Makefile.am b/tools/Makefile.am index e845fb2..ca86c07 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -10,3 +10,26 @@ bin_PROGRAMS = \ INCLUDES=-I$(top_srcdir)/include/ AM_LDFLAGS = $(top_builddir)/src/libutouch-evemu.la + + +# man page generation +if HAVE_DOCTOOLS +# actual man pages +man_pages_sources = evemu-describe.txt evemu-device.txt +# shadow man pages +man_pages_shadows = evemu-record.1 evemu-play.1 + +man_pages = $(man_pages_sources:.txt=.1) $(man_pages_shadows) + +SUFFIXES = .1 .txt .xml + +.xml.1: + @$(XMLTO) man $< + +.txt.xml: + @$(ASCIIDOC) -b docbook -d manpage -o $@ $< + +dist_man_MANS = $(man_pages) +CLEANFILES = $(dist_man_MANS) +MAINTAINERCLEANFILES = $(man_pages) *.xml +endif -- cgit v1.2.3