Add 6a356b402 to gnupg patches.
[gpg4win.git] / Makefile.am
1 # Makefile.am - Installer for GnuPG 4 Windows Makefile.
2 # Copyright (C) 2005, 2008, 2012 g10 Code GmbH
3 #
4 # This file is part of GPG4Win.
5 #
6 # GPG4Win 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 2 of the License, or
9 # (at your option) any later version.
10 #
11 # GPG4Win 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 ACLOCAL_AMFLAGS = -I m4
20 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
21 DISTCHECK_CONFIGURE_FLAGS = --host=i686-w64-mingw32
22
23 SUBDIRS = po packages doc src
24
25 # find patches -type f | sort | sed 's/$/ \\/' | sed 's/^/             /'
26
27 EXTRA_DIST = autogen.sh README.GIT ONEWS \
28         doc/license-page doc/GPLv3 \
29         build-aux/git-log-footer build-aux/git-log-fix \
30         patches/dirmngr-1.1.1/dirmngr-pth.patch \
31         patches/glib-2.41.5/01-socket.patch \
32         patches/gpgme-1.5.5/0001-Add-offline-mode-support-for-CMS-keylisting.patch \
33         patches/gnupg2-2.0.28/0001-Enable-wildcard-expansion-with-mingw-w64.patch \
34         patches/gnupg2-2.0.28/0002-Let-wchar_to_native-convert-to-console-codepage.patch \
35         patches/gnupg2-2.0.28/0005-Fix-gpgtar-8-bit-encoding-handling-on-Win32.patch \
36         patches/gnupg2-2.0.28/0006-gpgsm-Add-command-option-offline.patch \
37         patches/gnupg2-2.0.28/0007-sm-Revert-to-use-SHA-1-for-CSR-generation.patch \
38         patches/gnupg2/01-version.patch \
39         patches/gnupg2/01-version.patch.in \
40         patches/gnutls-2.12.23/01-openssl-wincrypt.patch \
41         patches/gnutls-2.12.23/02-cve-2013-2116.patch \
42         patches/gnutls-2.12.23/03-cve-2014-1959.patch \
43         patches/gnutls-2.12.23/04-cve-2014-0092.patch \
44         patches/gnutls-2.12.23/05-cve-2014-3466.patch \
45         patches/gnutls-2.12.23/06-cve-2015-0282.patch \
46         patches/gnutls-2.12.23/07-cve-2015-0294.patch \
47         patches/gnutls-2.12.23/fix-gcrypt-private-api-usage.patch \
48         patches/gnutls-2.12.23/gnulib-mingw-w64-fix.patch \
49                 patches/gnutls-2.12.23/25_updatedgdocfrommaster.patch \
50         patches/libtasn1-2.14/gnulib-mingw-w64-fix.patch \
51                 patches/w32pth-2.0.5/workaround-broken-libtool.patch \
52                 patches/scute-1.4.0/workaround-broken-libtool.patch
53
54 copy-news:
55         cp NEWS doc/website/NEWS.last
56
57
58 copy-release: gpg4win-$(VERSION).tar.bz2 src/gpg4win-$(VERSION).exe \
59               src/gpg4win-light-$(VERSION).exe \
60               src/gpg4win-vanilla-$(VERSION).exe
61         @echo Copying $(VERSION) to $(RELEASEHOST) >&2
62         @set -e;\
63         if ssh "$$(echo $(RELEASEHOST)|cut -d: -f -1)" \
64         test -f "$$(echo $(RELEASEHOST)/gpg4win-$(VERSION).exe|cut -d: -f2-)";\
65         then echo "This release has already been copied to the server" >&2 ;\
66         else scp gpg4win-$(VERSION).tar.bz2 \
67                  src/gpg4win-$(VERSION).exe \
68                  src/gpg4win-light-$(VERSION).exe \
69                  src/gpg4win-vanilla-$(VERSION).exe \
70                  src/gpg4win-src-$(VERSION).exe  $(RELEASEHOST)/ ;\
71              for f in en de ; do \
72                scp src/README.$$f.txt \
73                      $(RELEASEHOST)/README-$(VERSION).$$f.txt; \
74              done;\
75         fi
76
77 dist-hook: gen-ChangeLog
78
79 gen_start_date = 2012-03-26T00:00:00
80 .PHONY: gen-ChangeLog
81 gen-ChangeLog:
82         set -e;                                                         \
83         if test -d $(top_srcdir)/.git; then                             \
84           (cd $(top_srcdir) &&                                          \
85             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
86             --amend=build-aux/git-log-fix                               \
87             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
88           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
89           rm -f $(distdir)/ChangeLog;                                   \
90           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
91         fi