|
Packit |
0680ba |
## Process this file with automake to create Makefile.in
|
|
Packit |
0680ba |
# Copyright (C) 2002 Free Software Foundation, Inc.
|
|
Packit |
0680ba |
#
|
|
Packit |
0680ba |
# This file is part of Libgcrypt.
|
|
Packit |
0680ba |
#
|
|
Packit |
0680ba |
# Libgcrypt is free software; you can redistribute it and/or modify
|
|
Packit |
0680ba |
# it under the terms of the GNU Lesser General Public License as
|
|
Packit |
0680ba |
# published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
0680ba |
# the License, or (at your option) any later version.
|
|
Packit |
0680ba |
#
|
|
Packit |
0680ba |
# Libgcrypt is distributed in the hope that it will be useful,
|
|
Packit |
0680ba |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
0680ba |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
0680ba |
# GNU Lesser General Public License for more details.
|
|
Packit |
0680ba |
#
|
|
Packit |
0680ba |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
0680ba |
# License along with this program; if not, write to the Free Software
|
|
Packit |
0680ba |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
EXTRA_DIST = README.apichanges HACKING DCO \
|
|
Packit |
0680ba |
libgcrypt-modules.eps fips-fsm.eps \
|
|
Packit |
0680ba |
libgcrypt-modules.png fips-fsm.png \
|
|
Packit |
0680ba |
libgcrypt-modules.pdf fips-fsm.pdf \
|
|
Packit |
0680ba |
yat2m.c
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
DISTCLEANFILES = gcrypt.cps yat2m-stamp.tmp yat2m-stamp $(myman_pages)
|
|
Packit |
0680ba |
CLEANFILES = yat2m
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
BUILT_SOURCES = libgcrypt-modules.eps fips-fsm.eps \
|
|
Packit |
0680ba |
libgcrypt-modules.png fips-fsm.png \
|
|
Packit |
0680ba |
libgcrypt-modules.pdf fips-fsm.pdf
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
info_TEXINFOS = gcrypt.texi
|
|
Packit |
0680ba |
gcrypt_TEXINFOS = lgpl.texi gpl.texi libgcrypt-modules.fig fips-fsm.fig
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
YAT2M_OPTIONS = -I $(srcdir) \
|
|
Packit |
0680ba |
--release "Libgcrypt @PACKAGE_VERSION@" --source "Libgcrypt"
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
myman_sources = gcrypt.texi
|
|
Packit |
0680ba |
myman_pages = hmac256.1
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
man_MANS = $(myman_pages)
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
yat2m: yat2m.c
|
|
Packit |
0680ba |
$(CC_FOR_BUILD) -o $@ $(srcdir)/yat2m.c
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
.fig.png:
|
|
Packit |
0680ba |
fig2dev -L png `test -f '$<' || echo '$(srcdir)/'`$< $@
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
.fig.jpg:
|
|
Packit |
0680ba |
fig2dev -L jpg `test -f '$<' || echo '$(srcdir)/'`$< $@
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
.fig.eps:
|
|
Packit |
0680ba |
fig2dev -L eps `test -f '$<' || echo '$(srcdir)/'`$< $@
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
.fig.pdf:
|
|
Packit |
0680ba |
fig2dev -L pdf `test -f '$<' || echo '$(srcdir)/'`$< $@
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
yat2m-stamp: $(myman_sources)
|
|
Packit |
0680ba |
@rm -f yat2m-stamp.tmp
|
|
Packit |
0680ba |
@touch yat2m-stamp.tmp
|
|
Packit |
0680ba |
for file in $(myman_sources) ; do \
|
|
Packit |
0680ba |
./yat2m $(YAT2M_OPTIONS) --store \
|
|
Packit |
0680ba |
`test -f '$$file' || echo '$(srcdir)/'`$$file ; done
|
|
Packit |
0680ba |
@mv -f yat2m-stamp.tmp $@
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
yat2m-stamp: yat2m
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
$(myman_pages) : yat2m-stamp
|
|
Packit |
0680ba |
@if test -f $@; then :; else \
|
|
Packit |
0680ba |
trap 'rm -rf yat2m-stamp yat2m-lock' 1 2 13 15; \
|
|
Packit |
0680ba |
if mkdir yat2m-lock 2>/dev/null; then \
|
|
Packit |
0680ba |
rm -f yat2m-stamp; \
|
|
Packit |
0680ba |
$(MAKE) $(AM_MAKEFLAGS) yat2m-stamp; \
|
|
Packit |
0680ba |
rmdir yat2m-lock; \
|
|
Packit |
0680ba |
else \
|
|
Packit |
0680ba |
while test -d yat2m-lock; do sleep 1; done; \
|
|
Packit |
0680ba |
test -f yat2m-stamp; exit $$?; \
|
|
Packit |
0680ba |
fi; \
|
|
Packit |
0680ba |
fi
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
# Make sure that gcrypt.texi is touched if any other source file has
|
|
Packit |
0680ba |
# been modified. This is required so that the version.texi magic
|
|
Packit |
0680ba |
# updates the release date.
|
|
Packit |
0680ba |
gnupg.texi : $(gcrypt_TEXINFOS)
|
|
Packit |
0680ba |
touch $(srcdir)/gcrypt.texi
|
|
Packit |
0680ba |
|
|
Packit |
0680ba |
online: gcrypt.html gcrypt.pdf gcrypt.info
|
|
Packit |
0680ba |
set -e; \
|
|
Packit |
0680ba |
echo "Uploading current manuals to www.gnupg.org ..."; \
|
|
Packit |
0680ba |
cp libgcrypt-modules.png gcrypt.html/; \
|
|
Packit |
0680ba |
cp fips-fsm.png gcrypt.html/; \
|
|
Packit |
0680ba |
user=werner ; dashdevel="" ; \
|
|
Packit |
0680ba |
if echo "@PACKAGE_VERSION@" | grep -- "-svn" >/dev/null; then \
|
|
Packit |
0680ba |
dashdevel="-devel" ; \
|
|
Packit |
0680ba |
cp gcrypt.pdf gcrypt.html/; \
|
|
Packit |
0680ba |
cp gcrypt.info gcrypt.html/; \
|
|
Packit |
0680ba |
else \
|
|
Packit |
0680ba |
rsync -v gcrypt.pdf gcrypt.info \
|
|
Packit |
0680ba |
$${user}@trithemius.gnupg.org:webspace/manuals/ ; \
|
|
Packit |
0680ba |
fi ; \
|
|
Packit |
0680ba |
cd gcrypt.html ; \
|
|
Packit |
0680ba |
rsync -vr --exclude='.svn' . \
|
|
Packit |
0680ba |
$${user}@trithemius.gnupg.org:webspace/manuals/gcrypt$${dashdevel}/
|