1 # Only build man pages if configure found the HELP2MAN tool
12 CLEANFILES = $(man_MANS)
14 # The man pages depend on the --help strings and the version number.
15 common_mandeps = $(top_srcdir)/configure.ac
17 # We are not distributing the man pages otherwise we would need rules
18 # such as below. The user will have to install help2man if they want
20 # lou_allround.1: $(top_srcdir)/tools/lou_allround.c $(common_mandeps)
21 # cd ../liblouis && $(MAKE) $(AM_MAKEFLAGS) liblouis.la
22 # cd ../gnulib && $(MAKE) $(AM_MAKEFLAGS) libgnu.la
23 # cd ../tools && $(MAKE) $(AM_MAKEFLAGS) lou_allround$(EXEEXT)
24 # $(HELP2MAN) ../tools/lou_allround$(EXEEXT) --info-page=$(PACKAGE) --output=$@
26 # Depend on the source, not the binary; we don't need to regenerate the
27 # binary when any source file changes, only the main one.
28 lou_allround.1: $(top_srcdir)/tools/lou_allround.c $(common_mandeps)
29 $(HELP2MAN) ../tools/lou_allround$(EXEEXT) --info-page=$(PACKAGE) \
30 --name="Test every capability of the liblouis library" \
33 lou_checkhyphens.1: $(top_srcdir)/tools/lou_checkhyphens.c $(common_mandeps)
34 $(HELP2MAN) ../tools/lou_checkhyphens$(EXEEXT) --info-page=$(PACKAGE) \
35 --name="Check the accuracy of hyphenation in liblouis Braille translation tables" \
38 lou_checktable.1: $(top_srcdir)/tools/lou_checktable.c $(common_mandeps)
39 $(HELP2MAN) ../tools/lou_checktable$(EXEEXT) --info-page=$(PACKAGE) \
40 --name="Test a liblouis Braille translation table" \
43 lou_debug.1: $(top_srcdir)/tools/lou_debug.c $(common_mandeps)
44 $(HELP2MAN) ../tools/lou_debug$(EXEEXT) --info-page=$(PACKAGE) \
45 --name="A debugger for liblouis Braille translation tables" \
48 lou_translate.1: $(top_srcdir)/tools/lou_translate.c $(common_mandeps)
49 $(HELP2MAN) ../tools/lou_translate$(EXEEXT) --info-page=$(PACKAGE) \
50 --name="A Braille translator for large scale testing of liblouis Braille translation tables" \
53 lou_trace.1: $(top_srcdir)/tools/lou_trace.c $(common_mandeps)
54 $(HELP2MAN) ../tools/lou_trace$(EXEEXT) --info-page=$(PACKAGE) \
55 --name="A tool to list all the rules that were used for a Braille translation" \