1 # Makefile.am - main makefile for GnuPG
2 # Copyright (C) 2001, 2004, 2010 Free Software Foundation, Inc.
4 # This file is part of GnuPG.
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.
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.
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/>.
19 ## Process this file with automake to produce Makefile.in
21 ACLOCAL_AMFLAGS = -I m4
22 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gnupg-builddir-envvar \
23 --enable-symcryptrun --enable-g13 \
24 --enable-gpg2-is-gpg --enable-gpgtar --enable-wks-tools --disable-ntbtls
26 GITLOG_TO_CHANGELOG=gitlog-to-changelog
28 EXTRA_DIST = build-aux/config.rpath build-aux/potomo autogen.sh autogen.rc \
29 ChangeLog-2011 po/ChangeLog-2011 build-aux/ChangeLog-2011 \
30 VERSION README.GIT build-aux/gitlog-to-changelog \
31 COPYING.GPL2 COPYING.LGPL21 COPYING.LGPL3 \
32 COPYING.CC0 COPYING.other \
33 build-aux/git-log-fix build-aux/git-log-footer \
34 build-aux/getswdb.sh \
36 build-aux/speedo/zlib.pc \
37 build-aux/speedo/w32/inst-options.ini \
38 build-aux/speedo/w32/inst.nsi \
39 build-aux/speedo/w32/pkg-copyright.txt \
40 build-aux/speedo/w32/g4wihelp.c \
41 build-aux/speedo/w32/pango.modules \
42 build-aux/speedo/w32/gdk-pixbuf-loaders.cache \
43 build-aux/speedo/w32/exdll.h \
44 build-aux/speedo/w32/README.txt \
45 build-aux/speedo/w32/gnupg-logo-150x57.bmp \
46 build-aux/speedo/w32/gnupg-logo-164x314.bmp \
47 build-aux/speedo/patches/atk-1.32.0.patch \
48 build-aux/speedo/patches/libiconv-1.14.patch \
49 build-aux/speedo/patches/pango-1.29.4.patch \
50 build-aux/speedo/patches/sqlite.patch
53 DISTCLEANFILES = g10defs.h
91 SUBDIRS = m4 common kbx \
92 ${gpg} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
95 dist_doc_DATA = README
98 dist-hook: gen-ChangeLog
102 pref="#+macro: gnupg21_" ;\
103 reldate="$$(date -u +%Y-%m-%d)" ;\
104 echo "$${pref}ver $(PACKAGE_VERSION)" ;\
105 echo "$${pref}date $${reldate}" ;\
106 list='$(DIST_ARCHIVES)'; for i in $$list; do \
107 case "$$i" in *.tar.bz2) \
108 echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
109 echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
110 echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
112 done ) | tee $(distdir).swdb
118 for i in $$($(top_srcdir)/build-aux/potomo \
119 --get-linguas $(top_srcdir)/po) ; do \
120 $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
121 rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
122 2>/dev/null || true; \
123 $(top_srcdir)/build-aux/potomo $(top_srcdir)/po/$$i.po \
124 "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
129 gen_start_date = 2011-12-01T06:00:00
130 .PHONY: gen-ChangeLog
132 if test -e $(top_srcdir)/.git; then \
133 (cd $(top_srcdir) && \
134 $(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
135 --amend=build-aux/git-log-fix \
136 --since=$(gen_start_date) ) > $(distdir)/cl-t; \
137 cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t; \
138 rm -f $(distdir)/ChangeLog; \
139 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
144 $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg
146 TESTS_ENVIRONMENT = \
149 PATH=$(abs_top_builddir)/tests/gpgscm:$(PATH) \
150 abs_top_srcdir=$(abs_top_srcdir) \
151 objdir=$(abs_top_builddir) \
152 GPGSCM_PATH=$(abs_top_srcdir)/tests/gpgscm
156 $(TESTS_ENVIRONMENT) \
157 $(abs_top_builddir)/tests/gpgscm/gpgscm \
158 $(abs_srcdir)/tests/run-tests.scm $(TESTFLAGS) $(TESTS)