More man pages. Added include files for 2 common paragraphs.
[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 = gnupg-badge-openpgp.eps gnupg-badge-openpgp.jpg \
23              gnupg-badge-openpgp.pdf \
24              gnupg-card-architecture.eps gnupg-card-architecture.png \
25              gnupg-card-architecture.pdf \
26              opt-homedir.texi see-also-note.texi
27
28 BUILT_SOURCES = gnupg-card-architecture.eps gnupg-card-architecture.png \
29                 gnupg-card-architecture.pdf
30
31 noinst_PROGRAMS = yat2m
32
33 info_TEXINFOS = gnupg.texi
34
35 dist_pkgdata_DATA = qualified.txt
36
37 gnupg_TEXINFOS = \
38         gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi assuan.texi \
39         tools.texi debugging.texi glossary.texi contrib.texi gpl.texi \
40         sysnotes.texi gnupg-card-architecture.fig
41
42 AM_MAKEFINFOFLAGS = -I $(srcdir)
43
44 YAT2M_OPTIONS = -I $(srcdir) \
45         --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard"
46
47 myman_sources = gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi tools.texi
48 myman_pages   = gpg2.1 gpgsm.1 gpg-agent.1 scdaemon.1 \
49                 watchgnupg.1 gpgconf.1 addgnupghome.8 gpg-preset-passphrase.1 \
50                 gpg-connect-agent.1 gpgparsemail.1 symcryptrun.1 \
51                 gpgsm-gencert.sh.1
52
53 man_MANS = $(myman_pages)
54
55
56 watchgnupg_SOURCE = gnupg.texi
57
58 DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
59                  $(myman_pages)
60
61 yat2m_SOURCES = yat2m.c
62
63
64 .fig.png:
65         fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
66
67 .fig.jpg:
68         fig2dev -L jpg `test -f '$<' || echo '$(srcdir)/'`$< $@
69
70 .fig.eps:
71         fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
72
73 .fig.pdf:
74         fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
75
76
77 yat2m-stamp: $(myman_sources)
78         @rm -f yat2m-stamp.tmp
79         @touch yat2m-stamp.tmp
80         for file in $(myman_sources) ; do \
81               ./yat2m $(YAT2M_OPTIONS) --store \
82                   `test -f '$$file' || echo '$(srcdir)/'`$$file ; done
83         @mv -f yat2m-stamp.tmp $@
84
85 yat2m-stamp: yat2m
86
87 $(myman_pages) : yat2m-stamp
88         @if test -f $@; then :; else \
89             trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
90                if mkdir yat2m-lock 2>/dev/null; then \
91                  rm -f yat2m-stamp; \
92                  $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
93                  rmdir yat2m-lock; \
94                else \
95                  while test -d yat2m-lock; do sleep 1; done; \
96                  test -f yat2m-stamp; exit $$?; \
97                fi; \
98              fi
99