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