Add patch to fix pinentry-qt4 build
[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/claws-mail-3.9.1/01-w64-mingw32.patch \
31         patches/claws-mail-3.9.1/02-ldap-opt.patch \
32         patches/claws-mail-3.9.1/03-all-crypto.patch \
33         patches/claws-mail-3.9.1/20-c416e89d.patch \
34         patches/claws-mail-3.9.1/21-66aa06c7.patch \
35         patches/claws-mail-3.9.1/50-configure.patch \
36         patches/claws-mail-3.9.1/51-version-file.patch \
37         patches/claws-mail-3.9.1/80-src-makefile.postcfg-build \
38         patches/dirmngr-1.1.1/dirmngr-pth.patch \
39         patches/glib-2.41.0/01-socket.patch \
40         patches/glib-2.41.0/03-remove-rand_s.patch \
41         patches/gnupg2-2.0.27/0001-Enable-wildcard-expansion-with-mingw-w64.patch \
42         patches/gnupg2-2.0.27/0002-Let-wchar_to_native-convert-to-console-codepage.patch \
43         patches/gnupg2-2.0.27/0005-Fix-gpgtar-8-bit-encoding-handling-on-Win32.patch \
44         patches/gnupg2/01-version.patch \
45         patches/gnupg2/01-version.patch.in \
46         patches/gnutls-2.12.23/01-openssl-wincrypt.patch \
47         patches/gnutls-2.12.23/02-cve-2013-2116.patch \
48         patches/gnutls-2.12.23/03-cve-2014-1959.patch \
49         patches/gnutls-2.12.23/04-cve-2014-0092.patch \
50         patches/gnutls-2.12.23/05-cve-2014-3466.patch \
51         patches/gnutls-2.12.23/fix-gcrypt-private-api-usage.patch \
52         patches/gnutls-2.12.23/gnulib-mingw-w64-fix.patch \
53         patches/gtkhtml2_viewer-0.34/80-src-makefile.postcfg-build \
54         patches/libtasn1-2.14/gnulib-mingw-w64-fix.patch \
55         patches/pinentry-0.9.0/fix-wrong-moc-files.patch \
56         patches/pthreads-w32-2-8-0-release/01-make.patch \
57         patches/pthreads-w32-2-8-0-release/02-mingw_w64_timespec_compatibility.patch
58
59 copy-news:
60         cp NEWS doc/website/NEWS.last
61
62
63 copy-release: gpg4win-$(VERSION).tar.bz2 src/gpg4win-$(VERSION).exe \
64               src/gpg4win-light-$(VERSION).exe \
65               src/gpg4win-vanilla-$(VERSION).exe
66         @echo Copying $(VERSION) to $(RELEASEHOST) >&2
67         @set -e;\
68         if ssh "$$(echo $(RELEASEHOST)|cut -d: -f -1)" \
69         test -f "$$(echo $(RELEASEHOST)/gpg4win-$(VERSION).exe|cut -d: -f2-)";\
70         then echo "This release has already been copied to the server" >&2 ;\
71         else scp gpg4win-$(VERSION).tar.bz2 \
72                  src/gpg4win-$(VERSION).exe \
73                  src/gpg4win-light-$(VERSION).exe \
74                  src/gpg4win-vanilla-$(VERSION).exe \
75                  src/gpg4win-src-$(VERSION).exe  $(RELEASEHOST)/ ;\
76              for f in en de ; do \
77                scp src/README.$$f.txt \
78                      $(RELEASEHOST)/README-$(VERSION).$$f.txt; \
79              done;\
80         fi
81
82 dist-hook: gen-ChangeLog
83
84 gen_start_date = 2012-03-26T00:00:00
85 .PHONY: gen-ChangeLog
86 gen-ChangeLog:
87         set -e;                                                         \
88         if test -d $(top_srcdir)/.git; then                             \
89           (cd $(top_srcdir) &&                                          \
90             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
91             --amend=build-aux/git-log-fix                               \
92             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
93           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
94           rm -f $(distdir)/ChangeLog;                                   \
95           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
96         fi