Generate HTML from the texinfo source and include it in the dist.
[pwmd.git] / doc / Makefile.am
bloba6e3b2e0827ae9a7138d0a960ac72bcfd7ff6989
1 EXTRA_DIST = config.example magic extract-help-text.awk commands.texi \
2              menu.texi pwmd.1 pwmd.info pwmd.html
3 man1_MANS = pwmd.1
4 info_TEXINFOS = pwmd.texi
6 noinst_PROGRAMS = yat2m
7 yat2m_SOURCES = yat2m.c
9 commands.texi: extract-help-text.awk $(top_srcdir)/src/commands.c
10         awk -f $(top_srcdir)/doc/extract-help-text.awk \
11             < $(top_srcdir)/src/commands.c \
12             > $(top_srcdir)/doc/commands.texi
13         echo '@menu' | cat - menu.texi.in > menu.texi \
14             && echo '@end menu' >> menu.texi
15         rm -f pwmd.texi.in menu.texi.in
17 $(srcdir)/pwmd.info: commands.texi
19 pwmd.1: yat2m pwmd.texi
20         if test ! -f $(top_srcdir)/doc/pwmd.1; then \
21             $(top_srcdir)/doc/yat2m --source 'Password Manager Daemon' \
22             --release @VERSION@ $(top_srcdir)/doc/pwmd.texi \
23             > $(top_srcdir)/doc/pwmd.1; \
24         fi
26 pwmd.html: pwmd.info
27         texi2html pwmd.texi
29 dist-hook: pwmd.html