Support for a global gpgconf configuration file.
[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 examples = examples/README examples/scd-event examples/trustlist.txt \
23            examples/gpgconf.conf
24
25 EXTRA_DIST = DETAILS HACKING TRANSLATE OpenPGP KEYSERVER samplekeys.asc \
26              gnupg-badge-openpgp.eps gnupg-badge-openpgp.jpg \
27              gnupg-badge-openpgp.pdf \
28              gnupg-card-architecture.eps gnupg-card-architecture.png \
29              gnupg-card-architecture.pdf \
30              faq.raw FAQ faq.html gnupg7.texi \
31              opt-homedir.texi see-also-note.texi specify-user-id.texi \
32              gpgv.texi texi.css $(examples)
33
34 BUILT_SOURCES = gnupg-card-architecture.eps gnupg-card-architecture.png \
35                 gnupg-card-architecture.pdf FAQ faq.html
36
37 noinst_PROGRAMS = yat2m
38
39 info_TEXINFOS = gnupg.texi
40
41 dist_pkgdata_DATA = qualified.txt FAQ faq.html com-certs.pem
42
43 gnupg_TEXINFOS = \
44         gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi instguide.texi \
45         tools.texi debugging.texi glossary.texi contrib.texi gpl.texi \
46         sysnotes.texi gnupg-card-architecture.fig
47
48 AM_MAKEINFOFLAGS = -I $(srcdir) --css-include=$(srcdir)/texi.css
49
50 YAT2M_OPTIONS = -I $(srcdir) \
51         --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard"
52
53 myman_sources = gnupg7.texi gpg.texi gpgsm.texi gpg-agent.texi \
54                 scdaemon.texi tools.texi
55 myman_pages   = gpg2.1 gpgsm.1 gpg-agent.1 scdaemon.1 gpgv2.1 \
56                 watchgnupg.1 gpgconf.1 addgnupghome.8 gpg-preset-passphrase.1 \
57                 gpg-connect-agent.1 gpgparsemail.1 symcryptrun.1 \
58                 gpgsm-gencert.sh.1
59
60 man_MANS = $(myman_pages)
61 noinst_MANS = gnupg.7
62
63 watchgnupg_SOURCE = gnupg.texi
64
65
66 CLEANFILES = faq.raw.xref
67
68 DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
69                  $(myman_pages) gnupg.7
70
71 yat2m_SOURCES = yat2m.c
72
73
74 .fig.png:
75         fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
76
77 .fig.jpg:
78         fig2dev -L jpg `test -f '$<' || echo '$(srcdir)/'`$< $@
79
80 .fig.eps:
81         fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
82
83 .fig.pdf:
84         fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
85
86
87 FAQ : faq.raw
88 if WORKING_FAQPROG
89         $(FAQPROG) -f $<  $@ || $(FAQPROG) -f $< $@
90 else
91         : Warning: missing faqprog.pl, cannot make $@
92         echo "No $@ due to missing faqprog.pl" > $@
93         echo "See ftp://ftp.gnupg.org/gcrypt/contrib/faqprog.pl" >> $@
94 endif
95
96 faq.html : faq.raw
97 if WORKING_FAQPROG
98         $(FAQPROG) -h -f $< $@ 2>&1 || $(FAQPROG) -h -f $< $@
99 else
100         : Warning: missing faqprog.pl, cannot make $@
101         echo "No $@ due to missing faqprog.pl" > $@
102         echo "See ftp://ftp.gnupg.org/gcrypt/contrib/faqprog.pl" >> $@
103 endif
104
105
106 yat2m-stamp: $(myman_sources)
107         @rm -f yat2m-stamp.tmp
108         @touch yat2m-stamp.tmp
109         for file in $(myman_sources) ; do \
110               ./yat2m $(YAT2M_OPTIONS) --store \
111                   `test -f '$$file' || echo '$(srcdir)/'`$$file ; done
112         @mv -f yat2m-stamp.tmp $@
113
114 yat2m-stamp: yat2m
115
116 $(myman_pages) gnupg.7 : yat2m-stamp
117         @if test -f $@; then :; else \
118             trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
119                if mkdir yat2m-lock 2>/dev/null; then \
120                  rm -f yat2m-stamp; \
121                  $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
122                  rmdir yat2m-lock; \
123                else \
124                  while test -d yat2m-lock; do sleep 1; done; \
125                  test -f yat2m-stamp; exit $$?; \
126                fi; \
127              fi
128
129
130 online: gnupg.html gnupg.pdf
131         set -e; \
132         echo "Uploading current manuals to www.gnupg.org ..."; \
133         user=werner ; \
134         (cd gnupg.html && rsync -vr --exclude='.svn' .  \
135           $${user}@cvs.gnupg.org:webspace/manuals/gnupg/ ); \
136         rsync -v gnupg.pdf $${user}@cvs.gnupg.org:webspace/manuals/
137