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