Allow configuraton of pinentry tooltip.
[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 3 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, see <http://www.gnu.org/licenses/>.
17
18 ## Process this file with automake to produce Makefile.in
19
20 examples = examples/README examples/scd-event examples/trustlist.txt \
21            examples/gpgconf.conf examples/pwpattern.list
22
23 EXTRA_DIST = DETAILS HACKING TRANSLATE OpenPGP KEYSERVER samplekeys.asc \
24              gnupg-logo.eps gnupg-logo.pdf gnupg-logo.png \
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 specify-user-id.texi \
29              gpgv.texi texi.css $(examples) yat2m.c
30
31 BUILT_SOURCES = gnupg-card-architecture.eps gnupg-card-architecture.png \
32                 gnupg-card-architecture.pdf FAQ faq.html
33
34 info_TEXINFOS = gnupg.texi
35
36 dist_pkgdata_DATA = qualified.txt FAQ faq.html com-certs.pem \
37                     help.txt help.de.txt
38
39 gnupg_TEXINFOS = \
40         gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi instguide.texi \
41         tools.texi debugging.texi glossary.texi contrib.texi gpl.texi \
42         sysnotes.texi gnupg-card-architecture.fig \
43         howtos.texi howto-create-a-server-cert.texi
44
45 DVIPS = TEXINPUTS="$(srcdir)$(PATH_SEPARATOR)$$TEXINPUTS" dvips
46
47 AM_MAKEINFOFLAGS = -I $(srcdir) --css-include=$(srcdir)/texi.css
48
49 YAT2M_OPTIONS = -I $(srcdir) \
50         --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard"
51
52 myman_sources = gnupg7.texi gpg.texi gpgsm.texi gpg-agent.texi \
53                 scdaemon.texi tools.texi
54 myman_pages   = gpg2.1 gpgsm.1 gpg-agent.1 scdaemon.1 gpgv2.1 \
55                 watchgnupg.1 gpgconf.1 addgnupghome.8 gpg-preset-passphrase.1 \
56                 gpg-connect-agent.1 gpgparsemail.1 symcryptrun.1 \
57                 gpgsm-gencert.sh.1 applygnupgdefaults.8
58
59 man_MANS = $(myman_pages)
60 noinst_MANS = gnupg.7
61
62 watchgnupg_SOURCE = gnupg.texi
63
64
65 CLEANFILES = faq.raw.xref yat2m
66
67 DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
68                  $(myman_pages) gnupg.7
69
70 yat2m: yat2m.c
71         $(CC_FOR_BUILD) -o $@ $(srcdir)/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 # Make sure that gnupg.texi is touched if any other source file has
130 # been modified.  This is required so that the version.texi magic
131 # updates the release date.
132 gnupg.texi : $(gnupg_TEXINFOS)
133         touch $(srcdir)/gnupg.texi
134
135 install-html-local:
136         cp $(srcdir)/gnupg-logo.png gnupg.html/
137
138 online: gnupg.html gnupg.pdf
139         set -e; \
140         echo "Uploading current manuals to www.gnupg.org ..."; \
141         cp gnupg-logo.png gnupg.html/; \
142         user=werner ; dashdevel="" ; \
143         if echo "@PACKAGE_VERSION@" | grep -- "-svn" >/dev/null; then \
144           dashdevel="-devel" ; \
145         else \
146           rsync -v gnupg.pdf $${user}@cvs.gnupg.org:webspace/manuals/ ; \
147         fi ; \
148         cd gnupg.html ; \
149         rsync -vr --exclude='.svn' .  \
150           $${user}@cvs.gnupg.org:webspace/manuals/gnupg$${dashdevel}/ 
151