SCD: Add option enable-keypad-varlen and support for GEMPC_PINPAD.
[gnupg.git] / Makefile.am
1 # Makefile.am - main makefile for GnuPG
2 #       Copyright (C) 2001, 2004, 2010 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 scripts/potomo autogen.sh README.GIT \
28              ChangeLog-2011 po/ChangeLog-2011 scripts/ChangeLog-2011 \
29              scripts/gitlog-to-changelog \
30              scripts/git-log-fix scripts/git-log-footer
31 DISTCLEANFILES = g10defs.h
32
33 if BUILD_GPGSM
34 kbx = kbx
35 else
36 kbx =
37 endif
38
39
40 if BUILD_GPG
41 gpg = g10
42 if !HAVE_W32CE_SYSTEM
43 keyserver =
44 endif
45 else
46 gpg =
47 keyserver =
48 endif
49 if BUILD_GPGSM
50 sm = sm
51 else
52 sm =
53 endif
54 if BUILD_AGENT
55 agent = agent
56 else
57 agent =
58 endif
59 if BUILD_SCDAEMON
60 scd = scd
61 else
62 scd =
63 endif
64 if BUILD_G13
65 g13 = g13
66 else
67 g13 =
68 endif
69 if BUILD_DIRMNGR
70 dirmngr = dirmngr
71 else
72 dirmngr =
73 endif
74 if BUILD_TOOLS
75 tools = tools
76 else
77 tools =
78 endif
79 if BUILD_DOC
80 doc = doc
81 else
82 doc =
83 endif
84
85 if RUN_TESTS
86 tests = tests
87 else
88 tests =
89 endif
90
91 SUBDIRS = m4 gl include common ${kbx} \
92           ${gpg} ${keyserver} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
93           ${tools} po ${doc} ${tests}
94
95 dist_doc_DATA = README
96
97
98 dist-hook: gen-ChangeLog
99         echo "$(VERSION)" > $(distdir)/VERSION
100
101 if HAVE_W32_SYSTEM
102 install-data-hook:
103         set -e; \
104         for i in $$($(top_srcdir)/scripts/potomo \
105                      --get-linguas $(top_srcdir)/po) ; do \
106            $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
107            rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
108                                                  2>/dev/null || true; \
109            $(top_srcdir)/scripts/potomo $(top_srcdir)/po/$$i.po \
110               "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
111         done
112 endif
113
114
115 gen_start_date = 2011-12-01T06:00:00
116 .PHONY: gen-ChangeLog
117 gen-ChangeLog:
118         if test -d $(top_srcdir)/.git; then                             \
119           (cd $(top_srcdir) &&                                          \
120             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
121             --amend=scripts/git-log-fix                                 \
122             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
123           cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t;  \
124           rm -f $(distdir)/ChangeLog;                                   \
125           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
126         fi
127
128
129 stowinstall:
130         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg