* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Specify --with-gpg.
[gpgme.git] / Makefile.am
1 # Makefile.am - Top level Makefile for GPGME.
2 # Copyright (C) 2000 Werner Koch (dd9jn)
3 # Copyright (C) 2001, 2002, 2004, 2005, 2008, 2009 g10 Code GmbH
4
5 # This file is part of GPGME.
6
7 # GPGME is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation; either version 2.1 of the
10 # License, or (at your option) any later version.
11
12 # GPGME is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
15 # Public License for more details.
16
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this program; if not, see <http://www.gnu.org/licenses/>.
19
20 ## Process this file with automake to produce Makefile.in
21
22 ACLOCAL_AMFLAGS = -I m4
23 AUTOMAKE_OPTIONS = dist-bzip2
24
25 DISTCHECK_CONFIGURE_FLAGS = --with-gpg="@GPG@"
26
27 EXTRA_DIST = gpgme.spec.in autogen.sh 
28
29 if BUILD_ASSUAN
30 assuan = assuan
31 else
32 assuan =
33 endif
34
35 if BUILD_COMPLUS
36 complus = complus
37 else
38 complus = 
39 endif
40
41 if RUN_GPG_TESTS
42 tests = tests
43 else
44 tests = 
45 endif
46
47 SUBDIRS = ${assuan} src ${tests} doc ${complus} lang
48
49 # Fix the version of the spec file and create a file named VERSION 
50 # to be used for patch's Prereq: feature.
51 dist-hook:
52         @set -e; \
53         sed -e 's/@pkg_version@/$(VERSION)/g' \
54             $(top_srcdir)/gpgme.spec.in  > $(distdir)/gpgme.spec
55         echo "$(VERSION)" > $(distdir)/VERSION