Debian Codegraph @

doc/Makefile.am

raw
1 ## Process this file with automake to create Makefile.in
2 # Copyright (C) 2002 Free Software Foundation, Inc.
3 #
4 # This file is part of Libgcrypt.
5 #
6 # Libgcrypt is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of
9 # the License, or (at your option) any later version.
10 #
11 # Libgcrypt is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this program; if not, see <https://www.gnu.org/licenses/>.
18 # SPDX-License-Identifier: LGPL-2.1-or-later
19
20 EXTRA_DIST = README.apichanges HACKING DCO \
21 libgcrypt-modules.png fips-fsm.png \
22 libgcrypt-modules.pdf fips-fsm.pdf \
23 yat2m.c
24
25 DISTCLEANFILES = gcrypt.cps yat2m-stamp.tmp yat2m-stamp $(myman_pages)
26 CLEANFILES = yat2m$(EXEEXT_FOR_BUILD)
27
28 BUILT_SOURCES = libgcrypt-modules.png fips-fsm.png \
29 libgcrypt-modules.pdf fips-fsm.pdf
30
31 info_TEXINFOS = gcrypt.texi
32 gcrypt_TEXINFOS = lgpl.texi gpl.texi libgcrypt-modules.fig fips-fsm.fig
33
34 YAT2M_OPTIONS = -I $(srcdir) \
35 --release "Libgcrypt @PACKAGE_VERSION@" --source "Libgcrypt"
36
37 myman_sources = gcrypt.texi
38 myman_pages = hmac256.1
39
40 man_MANS = $(myman_pages)
41
42 yat2m$(EXEEXT_FOR_BUILD): yat2m.c
43 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
44 $(CPPFLAGS_FOR_BUILD) -o $@ $(srcdir)/yat2m.c
45
46 .fig.png:
47 fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
48
49 .fig.jpg:
50 fig2dev -L jpg `test -f '$<' || echo '$(srcdir)/'`$< $@
51
52 .fig.eps:
53 fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
54
55 .fig.pdf:
56 fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
57
58 yat2m-stamp: $(myman_sources) $(srcdir)/version.texi
59 @rm -f yat2m-stamp.tmp
60 @touch yat2m-stamp.tmp
61 for file in $(myman_sources) ; do \
62 ./yat2m$(EXEEXT_FOR_BUILD) $(YAT2M_OPTIONS) --store \
63 `test -f '$$file' || echo '$(srcdir)/'`$$file ; done
64 @mv -f yat2m-stamp.tmp $@
65
66 yat2m-stamp: yat2m$(EXEEXT_FOR_BUILD)
67
68 $(myman_pages) : yat2m-stamp
69 @if test -f $@; then :; else \
70 trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
71 if mkdir yat2m-lock 2>/dev/null; then \
72 rm -f yat2m-stamp; \
73 $(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
74 rmdir yat2m-lock; \
75 else \
76 while test -d yat2m-lock; do sleep 1; done; \
77 test -f yat2m-stamp; exit $$?; \
78 fi; \
79 fi
80
81
82 # Make sure that gcrypt.texi is touched if any other source file has
83 # been modified. This is required so that the version.texi magic
84 # updates the release date.
85 gcrypt.texi : $(gcrypt_TEXINFOS)
86 touch $(srcdir)/gcrypt.texi
87
88 online: gcrypt.html gcrypt.pdf gcrypt.info
89 set -e; \
90 echo "Uploading current manuals to www.gnupg.org ..."; \
91 cp libgcrypt-modules.png gcrypt.html/; \
92 cp fips-fsm.png gcrypt.html/; \
93 user=werner ; dashdevel="" ; \
94 if echo "@PACKAGE_VERSION@" | grep -- "-svn" >/dev/null; then \
95 dashdevel="-devel" ; \
96 cp gcrypt.pdf gcrypt.html/; \
97 cp gcrypt.info gcrypt.html/; \
98 else \
99 rsync -v gcrypt.pdf gcrypt.info \
100 $${user}@trithemius.gnupg.org:webspace/manuals/ ; \
101 fi ; \
102 cd gcrypt.html ; \
103 rsync -vr --exclude='.svn' . \
104 $${user}@trithemius.gnupg.org:webspace/manuals/gcrypt$${dashdevel}/