2002-11-28 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / Makefile.am
1 # Copyright (C) 2000 Werner Koch (dd9jn)
2 # Copyright (C) 2001, 2002 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 EXTRA_DIST = README-alpha autogen.sh gpgme.spec.in
23
24 if BUILD_ASSUAN
25 assuan = assuan
26 else
27 assuan =
28 endif
29
30 if BUILD_BONOBO
31 bonobo = bonobo
32 else
33 bonobo = 
34 endif
35
36 if BUILD_COMPLUS
37 complus = complus
38 else
39 complus = 
40 endif
41
42 if RUN_GPG_TESTS
43 tests = tests
44 else
45 tests = 
46 endif
47
48 SUBDIRS = ${assuan} gpgme ${tests} doc ${bonobo} ${complus}
49
50 # Fix the version of the spec file and create a file named VERSION 
51 # to be used for patch's Prereq: feature.
52 dist-hook:
53         @set -e; \
54         sed -e 's/@pkg_version@/$(VERSION)/g' \
55             $(top_srcdir)/gpgme.spec.in  > $(distdir)/gpgme.spec
56         echo "$(VERSION)" > $(distdir)/VERSION