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