Cleanup patches directory
[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=i586-mingw32msvc
22
23 SUBDIRS = po packages include doc src
24
25 EXTRA_DIST = autogen.sh README.GIT ONEWS \
26         build-aux/git-log-footer build-aux/git-log-fix \
27         patches/pthreads-w32-2-8-0-release/01-make.patch \
28         patches/glib-2.12.12/01-giowin32.patch \
29         patches/glib-2.12.12/02-gspawn-w32.patch \
30         patches/glib-2.12.12/03-gspawn-w32-fixup.patch \
31         patches/glib-2.20.0/01-socket.patch \
32         patches/glib-2.24.0/01-socket.patch \
33         patches/gpgme/01-gpg2.patch \
34         patches/gpgme-1.1.7/01-registry.patch \
35         patches/gpgme-1.1.7/02-extern-umlaute.patch \
36         patches/gpgme-1.1.7/03-error-parsing.patch \
37         patches/gpgme-1.2.0/01-w32-io-threads.patch \
38         patches/gpgme-1.2.0/02-inv-signer.patch \
39         patches/gpgme-1.2.0/03-w32-socket.patch \
40         patches/gpgme-1.2.0/04-check-agent.patch \
41         patches/gpgme-1.2.0/05-is-socket.patch \
42         patches/gpgex-0.9.5/01-default-no-suffix.patch \
43         patches/gnupg2/01-version.patch.in \
44         patches/gnupg2/02-allow-mark-trusted.patch \
45         patches/gnupg2-2.0.9/01-close-all-handle.patch \
46         patches/gnupg2-2.0.9/02-de.po-fix.patch \
47         patches/gnupg2-2.0.9/03-i18n+etc.patch \
48         patches/gnupg2-2.0.9/04-ks-w32init.patch \
49         patches/gnupg2-2.0.9/05-w32-http.patch \
50         patches/gnupg2-2.0.12/01-scd-pw2.patch \
51         patches/gnupg2-2.0.12/02-pth-estream.patch \
52         patches/gnupg2-2.0.12/03-opgp-writekey.patch \
53         patches/gnupg2-2.0.12/04-hash-prefs.patch \
54         patches/gnupg2-2.0.12/05-dns-sd.patch \
55         patches/gnupg2-2.0.12/06-opgp-sign3072.patch \
56         patches/gnupg2-2.0.12/07-gpg-no-detached.patch \
57         patches/gnupg2-2.0.12/08-sm-learn-card.patch \
58         patches/gnupg2-2.0.12/09-sm-keylist.patch \
59         patches/gnupg2-2.0.12/10-inv-sgnr.patch \
60         patches/gnupg2-2.0.12/11-photoid-sk.patch \
61         patches/gnupg2-2.0.14/01-encode-s2k.patch \
62         patches/gnupg2-2.0.14/02-scd-no-service.patch \
63         patches/gnupg2-2.0.16/01-estream.patch \
64         patches/gnupg2-2.0.16/02-gpgtar.patch \
65         patches/gnupg2-2.0.16/03-kbx-realloc.patch \
66         patches/gnupg2-2.0.16/04-gpgtar-2.patch \
67         patches/gnupg2-2.0.16/05-err-codes.patch \
68         patches/gnupg2-2.0.16/06-reread-agent.patch \
69         patches/gnupg2-2.0.17/01-scd-reader-removal.patch \
70         patches/dirmngr-1.0.3/01-ldaphttp.patch \
71         patches/dirmngr-1.1.0/01-mmap.patch \
72         patches/gpgol-0.9.91/01-gpgme.patch \
73         patches/gpa-0.9.0/01-title-prop.patch \
74         patches/libetpan-0.57/01-gnutls_compat.patch \
75         patches/scute-1.2.0/01-bugfixes.patch \
76         patches/scute-1.3.0/01-wsastartup.patch \
77         patches/claws-mail-3.8.0cvs30/01-glib-h-only.patch
78
79 copy-news:
80         cp NEWS doc/website/NEWS.last
81
82
83 copy-release: gpg4win-$(VERSION).tar.bz2 src/gpg4win-$(VERSION).exe \
84               src/gpg4win-light-$(VERSION).exe \
85               src/gpg4win-vanilla-$(VERSION).exe
86         @echo Copying $(VERSION) to $(RELEASEHOST) >&2
87         @set -e;\
88         if ssh "$$(echo $(RELEASEHOST)|cut -d: -f -1)" \
89         test -f "$$(echo $(RELEASEHOST)/gpg4win-$(VERSION).exe|cut -d: -f2-)";\
90         then echo "This release has already been copied to the server" >&2 ;\
91         else scp gpg4win-$(VERSION).tar.bz2 \
92                  src/gpg4win-$(VERSION).exe \
93                  src/gpg4win-light-$(VERSION).exe \
94                  src/gpg4win-vanilla-$(VERSION).exe \
95                  src/gpg4win-src-$(VERSION).exe  $(RELEASEHOST)/ ;\
96              for f in en de ; do \
97                scp src/README.$$f.txt \
98                      $(RELEASEHOST)/README-$(VERSION).$$f.txt; \
99              done;\
100         fi
101
102 dist-hook: gen-ChangeLog
103
104 gen_start_date = 2012-03-26T00:00:00
105 .PHONY: gen-ChangeLog
106 gen-ChangeLog:
107         set -e;                                                         \
108         if test -d $(top_srcdir)/.git; then                             \
109           (cd $(top_srcdir) &&                                          \
110             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
111             --amend=build-aux/git-log-fix                               \
112             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
113           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
114           rm -f $(distdir)/ChangeLog;                                   \
115           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
116         fi