Release 0.2.1
[gpgme.git] / tests / 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
23 TESTS_ENVIRONMENT = GNUPGHOME=. 
24
25 TESTS = t-encrypt t-sign t-decrypt t-verify t-keylist t-export t-import \
26         t-trustlist
27
28
29 EXTRA_DIST = mkdemodirs pubdemo.asc secdemo.asc cipher-1.asc geheim.txt \
30              pubkey-1.asc seckey-1.asc
31
32 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
33
34 INCLUDES = 
35 LDADD = ../gpgme/libgpgme.la
36
37 # We don't run t-genkey in the test suite, because it taes too long
38 noinst_PROGRAMS = $(TESTS) t-genkey
39
40 distclean-local:
41         $(srcdir)/mkdemodirs --clean
42
43 all-local: ./pubring.gpg ./secring.gpg
44
45 ./pubring.gpg: $(srcdir)/pubdemo.asc
46         -gpg --homedir . --import $(srcdir)/pubdemo.asc
47
48 ./secring.gpg: ./Alpha/Secret.gpg 
49         -gpg --homedir . --allow-secret-key-import --import Alpha/Secret.gpg Zulu/Secret.gpg
50
51 ./Alpha/Secret.gpg: secdemo.asc 
52         srcdir=$(srcdir) $(srcdir)/mkdemodirs 
53
54
55
56
57
58
59