Fix a few 'gcc -fanalyzer' warnings.
[pwmd.git] / doc / Makefile.am
blobc6d24301e7f5afb08fff49efbaa3cc8a6c002894
1 EXTRA_DIST = config.example extract-help-text.awk commands.texi menu.texi \
2              pwmd.info pwmd.html yat2m.c
3 dist_man1_MANS = pwmd.1 pwmd-dump.1
4 info_TEXINFOS = pwmd.texi
5 CLEANFILES = yat2m$(EXEEXT) pwmd.1
7 # remove targets if make recipe fails:
8 .DELETE_ON_ERROR:
10 yat2m$(EXEEXT): yat2m.c
11         $(CC_FOR_BUILD) $(CFLAGS) -o yat2m$(EXEEXT) $(srcdir)/yat2m.c
13 AM_MAKEINFOFLAGS=    -I$(builddir)
14 AM_MAKEINFOHTMLFLAGS=--no-split
16 # menu.texi built as a side effect in extract-help-text.awk:
17 commands.texi menu.texi: extract-help-text.awk $(top_srcdir)/src/commands.c
18         $(AWK) -f $(top_srcdir)/doc/extract-help-text.awk \
19             < $(top_srcdir)/src/commands.c \
20             > commands.texi \
21         ||  { rc=$$? ; rm -f menu.texi ; exit $$rc ; }
23 $(srcdir)/pwmd.texi: commands.texi menu.texi
24         -touch -c $(srcdir)/pwmd.texi
26 pwmd.1: yat2m$(EXEEXT) pwmd.texi
27         $(MAKE) $(AM_MAKEFLAGS) yat2m$(EXEEXT)
28         $(builddir)/yat2m$(EXEEXT) --source 'Password Manager Daemon' \
29             --release @VERSION@ $(top_srcdir)/doc/pwmd.texi \
30             > pwmd.1
32 # Prevent remvoing the generated pwmd.html during 'clean' as this file is in
33 # the git tree.
34 clean-aminfo:
35         -test -z "pwmd.dvi pwmd.pdf pwmd.ps" \
36         || rm -rf pwmd.dvi pwmd.pdf pwmd.ps
38 all: pwmd.html pwmd.1 $(srcdir)/pwmd.info