Update Kleopatra to lastes master
[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/glib-2.41.5/01-socket.patch \
31         patches/qtbase/fix-freetype-link.patch \
32         patches/qtbase/fix-oci-detect.patch \
33         patches/qtbase/fix-syssemaphore.patch \
34         patches/qtbase/fix-zlib-link.patch \
35         patches/qtbase/relative-paths.patch \
36         patches/qtbase/fix-fontconfig.patch \
37         patches/qtbase/config-standardpaths.patch \
38         patches/w32pth-2.0.5/workaround-broken-libtool.patch \
39         patches/qttools/disable-most-tools.patch \
40         patches/ki18n/no-tests.patch \
41         patches/gpgme-1.6.0/0001-w32-Fallback-to-2.1-reg-key-for-gpgconf-search.patch \
42         patches/gpgme-1.6.0/0001-Add-gpgme_pubkey_algo_string.patch \
43         patches/kxmlgui/0002-Make-QDBus-dependency-optional.patch \
44         patches/kxmlgui/0003-Make-KTextWidgets-optional.patch \
45         patches/kxmlgui/0004-Cruedly-disable-KSendbugmail.patch \
46         patches/kconfigwidgets/0001-Make-QDbus-optional.patch \
47         patches/kconfigwidgets/0002-Crudely-remove-KF5Auth-depedency.patch \
48         patches/kiconthemes/0001-Make-DBus-optional.patch \
49         patches/qtsvg/qtsvg-link-zlib.patch \
50         patches/extra-cmake-modules/0001-Add-convert-utility-support-for-Windows-icons.patch \
51         patches/kleopatra/0005-Hack-generated-conf-files-for-Crosscompiling.patch \
52         patches/kleopatra/lower-kf5-required.patch \
53         patches/kleopatra/relax-gpgme-checks.patch \
54         patches/libgpg-error-1.21/0001-Add-FD_ISSET-replacement-for-Windows.patch \
55         patches/gpgex-1.0.4/0001-Prefer-kleowrapped-gpgwrapped-binaries.patch \
56         patches/libkleo/lower-kf5-required.patch \
57         patches/gpgex-1.0.4/0002-Fix-loop-logic-error-in-new-server-name-detection.patch \
58         patches/extra-cmake-modules/0001-Use-BIN_INSTALL_DIR-data-for-DATAROOTDIR-on-Windows.patch
59
60 copy-news:
61         cp NEWS doc/website/NEWS.last
62
63
64 copy-release: gpg4win-$(VERSION).tar.bz2 installers/gpg4win-$(VERSION).exe \
65               installers/gpg4win-light-$(VERSION).exe \
66               installers/gpg4win-vanilla-$(VERSION).exe
67         @echo Copying $(VERSION) to $(RELEASEHOST) >&2
68         @set -e;\
69         if ssh "$$(echo $(RELEASEHOST)|cut -d: -f -1)" \
70         test -f "$$(echo $(RELEASEHOST)/gpg4win-$(VERSION).exe|cut -d: -f2-)";\
71         then echo "This release has already been copied to the server" >&2 ;\
72         else scp gpg4win-$(VERSION).tar.bz2 \
73                  installers/gpg4win-$(VERSION).exe \
74                  installers/gpg4win-light-$(VERSION).exe \
75                  installers/gpg4win-vanilla-$(VERSION).exe \
76                  installers/gpg4win-src-$(VERSION).exe  $(RELEASEHOST)/ ;\
77              for f in en de ; do \
78                scp src/README.$$f.txt \
79                      $(RELEASEHOST)/README-$(VERSION).$$f.txt; \
80              done;\
81         fi
82
83 dist-hook: gen-ChangeLog
84
85 gen_start_date = 2012-03-26T00:00:00
86 .PHONY: gen-ChangeLog
87 gen-ChangeLog:
88         set -e;                                                         \
89         if test -d $(top_srcdir)/.git; then                             \
90           (cd $(top_srcdir) &&                                          \
91             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
92             --amend=build-aux/git-log-fix                               \
93             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
94           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
95           rm -f $(distdir)/ChangeLog;                                   \
96           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
97         fi