2002-02-09 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / tests / gpgsm / Makefile.am
1 # Copyright (C) 2000 Werner Koch (dd9jn)
2 # Copyright (C) 2001 g10 Code GmbH
3
4 # This file is part of GPGME.
5
6 # GPGME is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 # GPGME 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 General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20 ## Process this file with automake to produce Makefile.in
21
22 GPGSM = @GPGSM@
23
24 TESTS_ENVIRONMENT = GNUPGHOME=.
25
26 TESTS = t-import t-keylist t-encrypt t-verify t-decrypt t-sign
27
28 EXTRA_DIST = cert_dfn_pca01.der cert_dfn_pca15.der cert_g10code_test1.der $(key_id)
29
30 INCLUDES = -I$(top_srcdir)/gpgme
31
32 LDADD = ../../gpgme/libgpgme.la
33
34 noinst_PROGRAMS = $(TESTS)
35
36 key_id := 32100C27173EF6E9C4E9A25D3D69F86D37A4F939
37
38 all-local: ./pubring.kbx ./gpg-agent.conf ./gpgsm.conf ./private-keys-v1.d/$(key_id).key ./trustlist.txt
39
40 ./pubring.kbx: $(srcdir)/cert_g10code_test1.der
41         $(GPGSM) --homedir . --import $(srcdir)/cert_g10code_test1.der
42
43 ./gpg-agent.conf:
44         echo batch > ./gpg-agent.conf
45
46 ./gpgsm.conf:
47         echo disable-crl-checks > ./gpgsm.conf
48
49 ./private-keys-v1.d/$(key_id).key: $(srcdir)/$(key_id)
50         mkdir ./private-keys-v1.d
51         cp $(srcdir)/$(key_id) private-keys-v1.d/$(key_id).key
52
53 ./trustlist.txt:
54         echo $(key_id) > ./trustlist.txt