doc: Add aliases of all changed options.
[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 <https://www.gnu.org/licenses/>.
17
18 ## Process this file with automake to produce Makefile.in
19
20 AM_CPPFLAGS =
21
22 include $(top_srcdir)/am/cmacros.am
23
24 examples = examples/README examples/scd-event examples/trustlist.txt    \
25            examples/systemd-user/README                                 \
26            examples/systemd-user/dirmngr.service                        \
27            examples/systemd-user/dirmngr.socket                         \
28            examples/systemd-user/gpg-agent.service                      \
29            examples/systemd-user/gpg-agent.socket                       \
30            examples/systemd-user/gpg-agent-ssh.socket                   \
31            examples/systemd-user/gpg-agent-browser.socket               \
32            examples/systemd-user/gpg-agent-extra.socket                 \
33            examples/gpgconf.conf examples/pwpattern.list
34
35 helpfiles = help.txt help.be.txt help.ca.txt help.cs.txt                \
36             help.da.txt help.de.txt help.el.txt help.eo.txt             \
37             help.es.txt help.et.txt help.fi.txt help.fr.txt             \
38             help.gl.txt help.hu.txt help.id.txt help.it.txt             \
39             help.ja.txt help.nb.txt help.pl.txt help.pt.txt             \
40             help.pt_BR.txt help.ro.txt help.ru.txt help.sk.txt          \
41             help.sv.txt help.tr.txt help.zh_CN.txt help.zh_TW.txt
42
43 EXTRA_DIST = samplekeys.asc mksamplekeys com-certs.pem qualified.txt \
44              gnupg-logo.eps gnupg-logo.pdf gnupg-logo.png gnupg-logo-tr.png \
45              gnupg-module-overview.png gnupg-module-overview.pdf \
46              gnupg-card-architecture.png gnupg-card-architecture.pdf \
47              FAQ gnupg7.texi mkdefsinc.c defsincdate \
48              opt-homedir.texi see-also-note.texi specify-user-id.texi \
49              gpgv.texi yat2m.c ChangeLog-2011 whats-new-in-2.1.txt
50
51 BUILT_SOURCES = gnupg-module-overview.png gnupg-module-overview.pdf \
52                 gnupg-card-architecture.png gnupg-card-architecture.pdf \
53                 defsincdate defs.inc
54
55 info_TEXINFOS = gnupg.texi
56
57 dist_pkgdata_DATA =  $(helpfiles)
58
59 nobase_dist_doc_DATA = FAQ DETAILS HACKING DCO TRANSLATE OpenPGP KEYSERVER \
60                        $(examples)
61
62 #dist_html_DATA =
63
64
65 gnupg_TEXINFOS = \
66         gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi instguide.texi \
67         tools.texi debugging.texi glossary.texi contrib.texi gpl.texi \
68         sysnotes.texi dirmngr.texi \
69         gnupg-module-overview.svg \
70         gnupg-card-architecture.fig \
71         howtos.texi howto-create-a-server-cert.texi
72
73 gnupg.texi : defs.inc
74
75 # We need EPS files for "make distcheck" but we do not want to distribute
76 # them due to their size.  Let's build them as needed.
77 gnupg.dvi : gnupg-module-overview.eps gnupg-card-architecture.eps
78
79
80 DVIPS = TEXINPUTS="$(srcdir)$(PATH_SEPARATOR)$$TEXINPUTS" dvips
81
82 AM_MAKEINFOFLAGS = -I $(srcdir) --css-ref=/share/site.css
83
84 YAT2M_OPTIONS = -I $(srcdir) \
85         --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard 2.1"
86
87 myman_sources = gnupg7.texi gpg.texi gpgsm.texi gpg-agent.texi \
88                 dirmngr.texi scdaemon.texi tools.texi
89 myman_pages   = gpgsm.1 gpg-agent.1 dirmngr.8 scdaemon.1 \
90                 watchgnupg.1 gpgconf.1 addgnupghome.8 gpg-preset-passphrase.1 \
91                 gpg-connect-agent.1 gpgparsemail.1 symcryptrun.1 \
92                 applygnupgdefaults.8 \
93                 dirmngr-client.1
94 if USE_GPG2_HACK
95 myman_pages += gpg2.1 gpgv2.1
96 else
97 myman_pages += gpg.1 gpgv.1
98 endif
99
100 man_MANS = $(myman_pages) gnupg.7
101
102 watchgnupg_SOURCE = gnupg.texi
103
104
105 CLEANFILES = yat2m mkdefsinc defs.inc
106
107 DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
108                  gnupg-card-architecture.eps \
109                  gnupg-module-overview.eps \
110                  $(myman_pages) gpg-zip.1 gnupg.7
111
112 yat2m: yat2m.c
113         $(CC_FOR_BUILD) -o $@ $(srcdir)/yat2m.c
114
115 mkdefsinc: mkdefsinc.c Makefile ../config.h
116         $(CC_FOR_BUILD) -I. -I.. -I$(srcdir) $(AM_CPPFLAGS) \
117                         -o $@ $(srcdir)/mkdefsinc.c
118
119 .svg.eps:
120         convert `test -f '$<' || echo '$(srcdir)/'`$< $@
121
122 .svg.png:
123         convert `test -f '$<' || echo '$(srcdir)/'`$< $@
124
125 .svg.pdf:
126         convert `test -f '$<' || echo '$(srcdir)/'`$< $@
127
128 .fig.png:
129         fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
130
131 .fig.jpg:
132         fig2dev -L jpeg `test -f '$<' || echo '$(srcdir)/'`$< $@
133
134 .fig.eps:
135         fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
136
137 .fig.pdf:
138         fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
139
140
141 yat2m-stamp: $(myman_sources) defs.inc
142         @rm -f yat2m-stamp.tmp
143         @touch yat2m-stamp.tmp
144         incd="`test -f defsincdate || echo '$(srcdir)/'`defsincdate"; \
145         for file in $(myman_sources) ; do \
146               ./yat2m $(YAT2M_OPTIONS) --store \
147                   --date "`cat $$incd 2>/dev/null`" \
148                   `test -f '$$file' || echo '$(srcdir)/'`$$file ; done
149         @mv -f yat2m-stamp.tmp $@
150
151 yat2m-stamp: yat2m
152
153 $(myman_pages) gnupg.7 : yat2m-stamp defs.inc
154         @if test -f $@; then :; else \
155             trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
156                if mkdir yat2m-lock 2>/dev/null; then \
157                  rm -f yat2m-stamp; \
158                  $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
159                  rmdir yat2m-lock; \
160                else \
161                  while test -d yat2m-lock; do sleep 1; done; \
162                  test -f yat2m-stamp; exit $$?; \
163                fi; \
164              fi
165
166 dist-hook: defsincdate
167
168 defsincdate: $(gnupg_TEXINFOS)
169         : >defsincdate ; \
170         if test -e $(top_srcdir)/.git; then \
171           (cd $(srcdir) && git log -1 --format='%ct' \
172                -- $(gnupg_TEXINFOS) 2>/dev/null) >>defsincdate; \
173         fi
174
175 defs.inc : defsincdate Makefile mkdefsinc
176         incd="`test -f defsincdate || echo '$(srcdir)/'`defsincdate"; \
177         ./mkdefsinc -C $(srcdir) --date "`cat $$incd 2>/dev/null`" \
178             $(gnupg_TEXINFOS) >$@
179
180
181 online: gnupg.html gnupg.pdf gnupg-module-overview.png \
182            gnupg-card-architecture.png
183         set -e; \
184         echo "Uploading current manuals to www.gnupg.org ..."; \
185         cp $(srcdir)/gnupg-logo-tr.png gnupg.html/; \
186         cp gnupg-module-overview.png gnupg.html/; \
187         cp gnupg-card-architecture.png gnupg.html/; \
188         user=werner ; webhost="ftp.gnupg.org" ; dashdevel="" ; \
189         if echo "@PACKAGE_VERSION@" | grep -- "-beta" >/dev/null; then \
190           dashdevel="-devel" ; \
191         else \
192           rsync -v gnupg.pdf $${user}@$${webhost}:webspace/manuals/ ; \
193         fi ; \
194         cd gnupg.html ; \
195         rsync -vr --exclude='.git' .  \
196           $${user}@$${webhost}:webspace/manuals/gnupg$${dashdevel}/