gpg: Print PROGRESS status lines during key generation.
[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-g13
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_GPG
51 gpg = g10
52 else
53 gpg =
54 endif
55 if BUILD_GPGSM
56 sm = sm
57 else
58 sm =
59 endif
60 if BUILD_AGENT
61 agent = agent
62 else
63 agent =
64 endif
65 if BUILD_SCDAEMON
66 scd = scd
67 else
68 scd =
69 endif
70 if BUILD_G13
71 g13 = g13
72 else
73 g13 =
74 endif
75 if BUILD_DIRMNGR
76 dirmngr = dirmngr
77 else
78 dirmngr =
79 endif
80 if BUILD_TOOLS
81 tools = tools
82 else
83 tools =
84 endif
85 if BUILD_DOC
86 doc = doc
87 else
88 doc =
89 endif
90
91 if RUN_TESTS
92 tests = tests
93 else
94 tests =
95 endif
96
97 SUBDIRS = m4 common kbx \
98           ${gpg} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
99           ${tools} po ${doc} ${tests}
100
101 dist_doc_DATA = README
102
103
104 dist-hook: gen-ChangeLog
105
106 distcheck-hook:
107         set -e; ( \
108         pref="#+macro: gnupg21_" ;\
109         reldate="$$(date -u +%Y-%m-%d)" ;\
110         echo "$${pref}ver  $(PACKAGE_VERSION)"  ;\
111         echo "$${pref}date $${reldate}" ;\
112         list='$(DIST_ARCHIVES)'; for i in $$list; do \
113           case "$$i" in *.tar.bz2) \
114             echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
115             echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
116             echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
117           esac;\
118         done ) | tee $(distdir).swdb
119
120
121 if HAVE_W32_SYSTEM
122 install-data-hook:
123         set -e; \
124         for i in $$($(top_srcdir)/build-aux/potomo \
125                      --get-linguas $(top_srcdir)/po) ; do \
126            $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
127            rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
128                                                  2>/dev/null || true; \
129            $(top_srcdir)/build-aux/potomo $(top_srcdir)/po/$$i.po \
130               "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
131         done
132 endif
133
134
135 gen_start_date = 2011-12-01T06:00:00
136 .PHONY: gen-ChangeLog
137 gen-ChangeLog:
138         if test -e $(top_srcdir)/.git; then                             \
139           (cd $(top_srcdir) &&                                          \
140             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
141             --amend=build-aux/git-log-fix                               \
142             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
143           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;  \
144           rm -f $(distdir)/ChangeLog;                                   \
145           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
146         fi
147
148
149 stowinstall:
150         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg