agent: Improve support for externally cached passwords.
[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
22 DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar
23
24 GITLOG_TO_CHANGELOG=gitlog-to-changelog
25
26 EXTRA_DIST = build-aux/config.rpath build-aux/potomo autogen.sh autogen.rc \
27              ChangeLog-2011 po/ChangeLog-2011 build-aux/ChangeLog-2011 \
28              VERSION README.GIT build-aux/gitlog-to-changelog \
29              build-aux/git-log-fix build-aux/git-log-footer \
30              build-aux/getswdb.sh                           \
31              build-aux/speedo.mk                            \
32              build-aux/speedo/zlib.pc                       \
33              build-aux/speedo/w32/inst-options.ini          \
34              build-aux/speedo/w32/inst.nsi                  \
35              build-aux/speedo/w32/pkg-copyright.txt         \
36              build-aux/speedo/w32/g4wihelp.c                \
37              build-aux/speedo/w32/pango.modules             \
38              build-aux/speedo/w32/gdk-pixbuf-loaders.cache  \
39              build-aux/speedo/w32/exdll.h                   \
40              build-aux/speedo/w32/README.txt                \
41              build-aux/speedo/w32/gnupg-logo-150x57.bmp     \
42              build-aux/speedo/w32/gnupg-logo-164x314.bmp    \
43              build-aux/speedo/patches/atk-1.32.0.patch      \
44              build-aux/speedo/patches/libiconv-1.14.patch   \
45              build-aux/speedo/patches/pango-1.29.4.patch
46
47
48 DISTCLEANFILES = g10defs.h
49
50 if BUILD_GPGSM
51 kbx = kbx
52 else
53 kbx =
54 endif
55
56
57 if BUILD_GPG
58 gpg = g10
59 else
60 gpg =
61 endif
62 if BUILD_GPGSM
63 sm = sm
64 else
65 sm =
66 endif
67 if BUILD_AGENT
68 agent = agent
69 else
70 agent =
71 endif
72 if BUILD_SCDAEMON
73 scd = scd
74 else
75 scd =
76 endif
77 if BUILD_G13
78 g13 = g13
79 else
80 g13 =
81 endif
82 if BUILD_DIRMNGR
83 dirmngr = dirmngr
84 else
85 dirmngr =
86 endif
87 if BUILD_TOOLS
88 tools = tools
89 else
90 tools =
91 endif
92 if BUILD_DOC
93 doc = doc
94 else
95 doc =
96 endif
97
98 if RUN_TESTS
99 tests = tests
100 else
101 tests =
102 endif
103
104 SUBDIRS = m4 common ${kbx} \
105           ${gpg} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
106           ${tools} po ${doc} ${tests}
107
108 dist_doc_DATA = README
109
110
111 dist-hook: gen-ChangeLog
112
113 if HAVE_W32_SYSTEM
114 install-data-hook:
115         set -e; \
116         for i in $$($(top_srcdir)/build-aux/potomo \
117                      --get-linguas $(top_srcdir)/po) ; do \
118            $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
119            rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
120                                                  2>/dev/null || true; \
121            $(top_srcdir)/build-aux/potomo $(top_srcdir)/po/$$i.po \
122               "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
123         done
124 endif
125
126
127 gen_start_date = 2011-12-01T06:00:00
128 .PHONY: gen-ChangeLog
129 gen-ChangeLog:
130         if test -d $(top_srcdir)/.git; then                             \
131           (cd $(top_srcdir) &&                                          \
132             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
133             --amend=build-aux/git-log-fix                               \
134             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
135           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;  \
136           rm -f $(distdir)/ChangeLog;                                   \
137           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
138         fi
139
140
141 stowinstall:
142         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg