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