scd: add pinpad readers information for PC/SC service.
[gnupg.git] / Makefile.am
1 # Makefile.am - Top level makefile for GnuPG
2 #       Copyright (C) 2001, 2004, 2012 Free Software Foundation, Inc.
3 #
4 # This file is part of GnuPG.
5 #
6 # GnuPG 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 3 of the License, or
9 # (at your option) any later version.
10 #
11 # GnuPG 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, see <http://www.gnu.org/licenses/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
22 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
23 DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar
24
25 GITLOG_TO_CHANGELOG=gitlog-to-changelog
26
27 EXTRA_DIST = scripts/config.rpath autogen.sh README.SVN              \
28              ChangeLog-2011 po/ChangeLog-2011 scripts/ChangeLog-2011
29
30 DISTCLEANFILES = g10defs.h
31
32 if BUILD_GPGSM
33 kbx = kbx
34 else
35 kbx =
36 endif
37
38
39 if BUILD_GPG
40 gpg = g10
41 keyserver = keyserver
42 else
43 gpg =
44 keyserver =
45 endif
46 if BUILD_GPGSM
47 sm = sm
48 else
49 sm =
50 endif
51 if BUILD_AGENT
52 agent = agent
53 else
54 agent =
55 endif
56 if BUILD_SCDAEMON
57 scd = scd
58 else
59 scd =
60 endif
61 if BUILD_TOOLS
62 tools = tools
63 else
64 tools =
65 endif
66 if BUILD_DOC
67 doc = doc
68 else
69 doc =
70 endif
71
72 if HAVE_W32_SYSTEM
73 tests =
74 else
75 tests = tests
76 endif
77
78 SUBDIRS = m4 gl include jnlib common ${kbx} \
79  ${gpg} ${keyserver} ${sm} ${agent} ${scd} ${tools} po ${doc} ${tests}
80
81 dist_doc_DATA = README
82
83
84 dist-hook: gen-ChangeLog
85         echo "$(VERSION)" > $(distdir)/VERSION
86
87
88 gen_start_date = 2011-12-01T06:00:00
89 .PHONY: gen-ChangeLog
90 gen-ChangeLog:
91         set -e;                                                         \
92         if test -d $(top_srcdir)/.git; then                             \
93           (cd $(top_srcdir) &&                                          \
94             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
95             --amend=scripts/git-log-fix                                 \
96             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
97           cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t;  \
98           rm -f $(distdir)/ChangeLog;                                   \
99           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
100         fi
101
102
103 stowinstall:
104         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg