1 # Copyright (C) 2002, 2004 Free Software Foundation, Inc.
3 # This file is part of GnuPG.
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.
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.
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,
20 ## Process this file with automake to produce Makefile.in
22 examples = examples/README examples/scd-event examples/trustlist.txt
24 EXTRA_DIST = DETAILS HACKING TRANSLATE OpenPGP KEYSERVER samplekeys.asc \
25 gnupg-badge-openpgp.eps gnupg-badge-openpgp.jpg \
26 gnupg-badge-openpgp.pdf \
27 gnupg-card-architecture.eps gnupg-card-architecture.png \
28 gnupg-card-architecture.pdf \
29 faq.raw FAQ faq.html gnupg7.texi \
30 opt-homedir.texi see-also-note.texi specify-user-id.texi \
33 BUILT_SOURCES = gnupg-card-architecture.eps gnupg-card-architecture.png \
34 gnupg-card-architecture.pdf FAQ faq.html
36 noinst_PROGRAMS = yat2m
38 info_TEXINFOS = gnupg.texi
40 dist_pkgdata_DATA = qualified.txt FAQ faq.html com-certs.pem
43 gpg.texi gpgsm.texi gpg-agent.texi scdaemon.texi instguide.texi \
44 tools.texi debugging.texi glossary.texi contrib.texi gpl.texi \
45 sysnotes.texi gnupg-card-architecture.fig
47 AM_MAKEINFOFLAGS = -I $(srcdir) --css-include=$(srcdir)/texi.css
49 YAT2M_OPTIONS = -I $(srcdir) \
50 --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard"
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 \
59 man_MANS = $(myman_pages)
62 watchgnupg_SOURCE = gnupg.texi
65 CLEANFILES = faq.raw.xref
67 DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
68 $(myman_pages) gnupg.7
70 yat2m_SOURCES = yat2m.c
74 fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
77 fig2dev -L jpg `test -f '$<' || echo '$(srcdir)/'`$< $@
80 fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
83 fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
88 $(FAQPROG) -f $< $@ || $(FAQPROG) -f $< $@
90 : Warning: missing faqprog.pl, cannot make $@
91 echo "No $@ due to missing faqprog.pl" > $@
92 echo "See ftp://ftp.gnupg.org/gcrypt/contrib/faqprog.pl" >> $@
97 $(FAQPROG) -h -f $< $@ 2>&1 || $(FAQPROG) -h -f $< $@
99 : Warning: missing faqprog.pl, cannot make $@
100 echo "No $@ due to missing faqprog.pl" > $@
101 echo "See ftp://ftp.gnupg.org/gcrypt/contrib/faqprog.pl" >> $@
105 yat2m-stamp: $(myman_sources)
106 @rm -f yat2m-stamp.tmp
107 @touch yat2m-stamp.tmp
108 for file in $(myman_sources) ; do \
109 ./yat2m $(YAT2M_OPTIONS) --store \
110 `test -f '$$file' || echo '$(srcdir)/'`$$file ; done
111 @mv -f yat2m-stamp.tmp $@
115 $(myman_pages) gnupg.7 : yat2m-stamp
116 @if test -f $@; then :; else \
117 trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
118 if mkdir yat2m-lock 2>/dev/null; then \
120 $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
123 while test -d yat2m-lock; do sleep 1; done; \
124 test -f yat2m-stamp; exit $$?; \
129 online: gnupg.html gnupg.pdf
131 echo "Uploading current manuals to www.gnupg.org ..."; \
133 (cd gnupg.html && rsync -vr --exclude='.svn' . \
134 $${user}@cvs.gnupg.org:webspace/manuals/gnupg/ ); \
135 rsync -v gnupg.pdf $${user}@cvs.gnupg.org:webspace/manuals/