added missing gpgv man page
[gnupg.git] / doc / Makefile.am
1 # Copyright (C) 2002, 2004 Free Software Foundation, Inc.
2 #
3 # This file is part of GnuPG.
4 #
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 # USA.
19
20 ## Process this file with automake to produce Makefile.in
21
22 EXTRA_DIST = DETAILS HACKING TRANSLATE OpenPGP KEYSERVER samplekeys.asc \
23              gnupg-badge-openpgp.eps gnupg-badge-openpgp.jpg \
24              gnupg-badge-openpgp.pdf \
25              gnupg-card-architecture.eps gnupg-card-architecture.png \
26              gnupg-card-architecture.pdf \
27              faq.raw FAQ faq.html gnupg7.texi \
28              opt-homedir.texi see-also-note.texi
29
30 BUILT_SOURCES = gnupg-card-architecture.eps gnupg-card-architecture.png \
31                 gnupg-card-architecture.pdf FAQ faq.html
32
33 noinst_PROGRAMS = yat2m
34
35 info_TEXINFOS = gnupg.texi
36
37 dist_pkgdata_DATA = qualified.txt FAQ faq.html
38
39 gnupg_TEXINFOS = \
40         gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi assuan.texi \
41         tools.texi debugging.texi glossary.texi contrib.texi gpl.texi \
42         sysnotes.texi gnupg-card-architecture.fig
43
44 AM_MAKEFINFOFLAGS = -I $(srcdir)
45
46 YAT2M_OPTIONS = -I $(srcdir) \
47         --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard"
48
49 myman_sources = gnupg7.texi gpg.texi gpgsm.texi gpg-agent.texi \
50                 scdaemon.texi tools.texi
51 myman_pages   = gnupg.7 gpg2.1 gpgsm.1 gpg-agent.1 scdaemon.1 gpgv2.1 \
52                 watchgnupg.1 gpgconf.1 addgnupghome.8 gpg-preset-passphrase.1 \
53                 gpg-connect-agent.1 gpgparsemail.1 symcryptrun.1 \
54                 gpgsm-gencert.sh.1
55
56 man_MANS = $(myman_pages)
57
58
59 watchgnupg_SOURCE = gnupg.texi
60
61
62 CLEANFILES = faq.raw.xref
63
64 DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
65                  $(myman_pages)
66
67 yat2m_SOURCES = yat2m.c
68
69
70 .fig.png:
71         fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
72
73 .fig.jpg:
74         fig2dev -L jpg `test -f '$<' || echo '$(srcdir)/'`$< $@
75
76 .fig.eps:
77         fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
78
79 .fig.pdf:
80         fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
81
82
83 FAQ : faq.raw
84 if WORKING_FAQPROG
85         $(FAQPROG) -f $<  $@ || $(FAQPROG) -f $< $@
86 else
87         : Warning: missing faqprog.pl, cannot make $@
88         echo "No $@ due to missing faqprog.pl" > $@
89         echo "See ftp://ftp.gnupg.org/gcrypt/contrib/faqprog.pl" >> $@
90 endif
91
92 faq.html : faq.raw
93 if WORKING_FAQPROG
94         $(FAQPROG) -h -f $< $@ 2>&1 || $(FAQPROG) -h -f $< $@
95 else
96         : Warning: missing faqprog.pl, cannot make $@
97         echo "No $@ due to missing faqprog.pl" > $@
98         echo "See ftp://ftp.gnupg.org/gcrypt/contrib/faqprog.pl" >> $@
99 endif
100
101
102 yat2m-stamp: $(myman_sources)
103         @rm -f yat2m-stamp.tmp
104         @touch yat2m-stamp.tmp
105         for file in $(myman_sources) ; do \
106               ./yat2m $(YAT2M_OPTIONS) --store \
107                   `test -f '$$file' || echo '$(srcdir)/'`$$file ; done
108         @mv -f yat2m-stamp.tmp $@
109
110 yat2m-stamp: yat2m
111
112 $(myman_pages) : yat2m-stamp
113         @if test -f $@; then :; else \
114             trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
115                if mkdir yat2m-lock 2>/dev/null; then \
116                  rm -f yat2m-stamp; \
117                  $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
118                  rmdir yat2m-lock; \
119                else \
120                  while test -d yat2m-lock; do sleep 1; done; \
121                  test -f yat2m-stamp; exit $$?; \
122                fi; \
123              fi
124