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