2003-05-27 10:38:58 +02:00
|
|
|
# Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
|
2002-06-29 15:31:13 +02:00
|
|
|
#
|
|
|
|
# This file is part of GnuPG.
|
|
|
|
#
|
|
|
|
# GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-10-23 12:48:09 +02:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2002-06-29 15:31:13 +02:00
|
|
|
# (at your option) any later version.
|
2012-11-08 17:16:40 +01:00
|
|
|
#
|
2002-06-29 15:31:13 +02:00
|
|
|
# GnuPG is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2012-11-08 17:16:40 +01:00
|
|
|
#
|
2002-06-29 15:31:13 +02:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-10-23 12:48:09 +02:00
|
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2002-06-29 15:31:13 +02:00
|
|
|
# Process this file with automake to create Makefile.in
|
|
|
|
|
2003-07-10 17:10:02 +02:00
|
|
|
GPG_IMPORT = ../g10/gpg --homedir . --quiet --yes --no-permission-warning --import
|
1999-10-28 16:18:20 +02:00
|
|
|
|
1998-05-13 19:53:36 +02:00
|
|
|
TESTS = version.test mds.test \
|
1998-04-08 21:42:07 +02:00
|
|
|
decrypt.test decrypt-dsa.test \
|
2003-12-05 14:32:48 +01:00
|
|
|
sigs.test sigs-dsa.test \
|
1998-04-08 21:42:07 +02:00
|
|
|
encrypt.test encrypt-dsa.test \
|
2003-12-05 14:32:48 +01:00
|
|
|
seat.test clearsig.test encryptp.test detach.test \
|
|
|
|
armsigs.test armencrypt.test armencryptp.test \
|
|
|
|
signencrypt.test signencrypt-dsa.test \
|
|
|
|
armsignencrypt.test armdetach.test \
|
|
|
|
armdetachm.test detachm.test genkey1024.test \
|
2002-06-29 15:31:13 +02:00
|
|
|
conventional.test conventional-mdc.test \
|
2006-04-11 09:49:25 +02:00
|
|
|
multisig.test verify.test armor.test
|
1998-02-26 17:56:31 +01:00
|
|
|
|
2013-10-22 14:26:53 +02:00
|
|
|
# Force sequential run of tests as in the good old times
|
|
|
|
mds.log: version.log
|
|
|
|
decrypt.log: mds.log
|
|
|
|
decrypt-dsa.log: decrypt.log
|
|
|
|
sigs.log: decrypt-dsa.log
|
|
|
|
sigs-dsa.log: sigs.log
|
|
|
|
encrypt.log: sigs-dsa.log
|
|
|
|
encrypt-dsa.log: encrypt.log
|
|
|
|
seat.log: encrypt-dsa.log
|
|
|
|
clearsig.log: seat.log
|
|
|
|
encryptp.log: clearsig.log
|
|
|
|
detach.log: encryptp.log
|
|
|
|
armsigs.log: detach.log
|
|
|
|
armencrypt.log: armsigs.log
|
|
|
|
armencryptp.log: armencrypt.log
|
|
|
|
signencrypt.log: armencryptp.log
|
|
|
|
signencrypt-dsa.log: signencrypt.log
|
|
|
|
armsignencrypt.log: signencrypt-dsa.log
|
|
|
|
armdetach.log: armsignencrypt.log
|
|
|
|
armdetachm.log: armdetach.log
|
|
|
|
detachm.log: armdetachm.log
|
|
|
|
genkey1024.log: detachm.log
|
|
|
|
conventional.log: genkey1024.log
|
|
|
|
conventional-mdc.log: conventional.log
|
|
|
|
multisig.log: conventional-mdc.log
|
|
|
|
verify.log: multisig.log
|
|
|
|
armor.log: verify.log
|
|
|
|
|
|
|
|
|
2003-12-05 14:32:48 +01:00
|
|
|
|
1998-09-14 12:33:57 +02:00
|
|
|
TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
|
1998-04-08 21:42:07 +02:00
|
|
|
plain-1.asc plain-2.asc plain-3.asc plain-1-pgp.asc \
|
2003-04-23 22:08:38 +02:00
|
|
|
pubring.pkr.asc secring.skr.asc secdemo.asc pubdemo.asc options
|
1998-02-18 19:52:59 +01:00
|
|
|
|
1999-02-19 15:54:00 +01:00
|
|
|
DATA_FILES = data-500 data-9000 data-32000 data-80000 plain-large
|
1998-02-26 17:56:31 +01:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
EXTRA_DIST = defs.inc $(TESTS) $(TEST_FILES) \
|
1999-04-18 10:18:52 +02:00
|
|
|
mkdemodirs signdemokey
|
2012-11-08 17:16:40 +01:00
|
|
|
CLEANFILES = defs-config.inc x y yy z out err $(DATA_FILES) \
|
2002-06-29 15:31:13 +02:00
|
|
|
plain-1 plain-2 plain-3 trustdb.gpg *.lock .\#lk* \
|
2003-05-27 10:38:58 +02:00
|
|
|
*.test.log gpg_dearmor gpg.conf \
|
1999-02-13 14:17:29 +01:00
|
|
|
pubring.gpg secring.gpg pubring.pkr secring.skr
|
2002-06-29 15:31:13 +02:00
|
|
|
DISTCLEANFILES = pubring.gpg~ random_seed
|
1998-02-26 17:56:31 +01:00
|
|
|
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2012-11-08 17:16:40 +01:00
|
|
|
all-local: defs-config.inc
|
1998-09-14 17:49:56 +02:00
|
|
|
|
1999-04-18 10:18:52 +02:00
|
|
|
distclean-local:
|
2002-06-29 15:31:13 +02:00
|
|
|
$(srcdir)/mkdemodirs --clean
|
1999-04-18 10:18:52 +02:00
|
|
|
|
2012-11-08 17:16:40 +01:00
|
|
|
defs-config.inc: ./pubring.gpg ./secring.gpg ./plain-1 ./plain-2 ./plain-3 \
|
2003-04-23 22:08:38 +02:00
|
|
|
./pubring.pkr ./secring.skr ./gpg_dearmor $(DATA_FILES)
|
2012-11-08 17:16:40 +01:00
|
|
|
$(GPG_IMPORT) $(srcdir)/pubdemo.asc
|
|
|
|
echo '# Do not edit - created by the Makefile. -*- sh -*-' \
|
|
|
|
> defs-config.inc
|
|
|
|
if ENABLE_SELINUX_HACKS
|
|
|
|
echo enable_selinux_hacks=yes >> defs-config.inc
|
|
|
|
else
|
|
|
|
echo enable_selinux_hacks=no >> defs-config.inc
|
|
|
|
endif
|
|
|
|
|
1998-02-26 17:56:31 +01:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./gpg_dearmor:
|
|
|
|
echo '#!/bin/sh' >./gpg_dearmor
|
2007-12-14 12:30:01 +01:00
|
|
|
echo "../g10/gpg --no-options --no-greeting \
|
2002-06-29 15:31:13 +02:00
|
|
|
--no-secmem-warning --batch --dearmor" >>./gpg_dearmor
|
|
|
|
chmod 755 ./gpg_dearmor
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./pubring.gpg: $(srcdir)/pubring.asc $(srcdir)/pubdemo.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./pubring.gpg < $(srcdir)/pubring.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./secring.gpg: $(srcdir)/secring.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./secring.gpg < $(srcdir)/secring.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./pubring.pkr: $(srcdir)/pubring.pkr.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./pubring.pkr < $(srcdir)/pubring.pkr.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./secring.skr: $(srcdir)/secring.skr.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./secring.skr < $(srcdir)/secring.skr.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./plain-1: $(srcdir)/plain-1o.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./plain-1 < $(srcdir)/plain-1o.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./plain-2: $(srcdir)/plain-2o.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./plain-2 < $(srcdir)/plain-2o.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
2002-06-29 15:31:13 +02:00
|
|
|
./plain-3: $(srcdir)/plain-3o.asc ./gpg_dearmor
|
|
|
|
./gpg_dearmor > ./plain-3 < $(srcdir)/plain-3o.asc
|
1998-09-14 12:33:57 +02:00
|
|
|
|
1998-02-26 17:56:31 +01:00
|
|
|
|
|
|
|
data-500:
|
1998-09-14 12:33:57 +02:00
|
|
|
../tools/mk-tdata 500 >data-500
|
1998-02-26 17:56:31 +01:00
|
|
|
data-9000:
|
1998-09-14 12:33:57 +02:00
|
|
|
../tools/mk-tdata 9000 >data-9000
|
1998-02-26 17:56:31 +01:00
|
|
|
data-32000:
|
1998-09-14 12:33:57 +02:00
|
|
|
../tools/mk-tdata 32000 >data-32000
|
1998-02-26 17:56:31 +01:00
|
|
|
data-80000:
|
1998-09-14 12:33:57 +02:00
|
|
|
../tools/mk-tdata 80000 >data-80000
|
1999-02-19 15:54:00 +01:00
|
|
|
plain-large:
|
1999-02-26 17:59:48 +01:00
|
|
|
cat $(srcdir)/../doc/HACKING \
|
|
|
|
$(srcdir)/../doc/DETAILS \
|
|
|
|
$(srcdir)/../doc/FAQ >plain-large
|