Update copyright header to specify GPL version 2.
[pwmd.git] / doc / Makefile.am
blob5c0288bba7d7d3749131085ecc31cd10b5590630
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
7 # remove targets if make recipe fails:
8 .DELETE_ON_ERROR:
10 yat2m: yat2m.c
11         $(CC_FOR_BUILD) -o yat2m $(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: pwmd.texi
27         $(MAKE) $(AM_MAKEFLAGS) yat2m$(EXEEXT)
28         $(builddir)/yat2m --source 'Password Manager Daemon' \
29             --release @VERSION@ $(top_srcdir)/doc/pwmd.texi \
30             > pwmd.1
32 all: pwmd.html pwmd.1 $(srcdir)/pwmd.info