1 # Makefile.am - Top level Makefile for GPGME.
2 # Copyright (C) 2000 Werner Koch (dd9jn)
3 # Copyright (C) 2001, 2002, 2004, 2005, 2008, 2009 g10 Code GmbH
5 # This file is part of GPGME.
7 # GPGME is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation; either version 2.1 of the
10 # License, or (at your option) any later version.
12 # GPGME is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
15 # Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this program; if not, see <https://www.gnu.org/licenses/>.
20 ## Process this file with automake to produce Makefile.in
22 ACLOCAL_AMFLAGS = -I m4
24 DISTCHECK_CONFIGURE_FLAGS =
26 EXTRA_DIST = autogen.sh autogen.rc gpgme.spec.in \
27 ChangeLog-2011 m4/ChangeLog-2011 contrib/ChangeLog-2011
36 SUBDIRS = src ${tests} doc lang
38 # Fix the version of the spec file and create a file named VERSION
39 # to be used for patch's Prereq: feature.
40 dist-hook: gen-ChangeLog
42 sed -e 's/@pkg_version@/$(PACKAGE_VERSION)/g' \
43 $(top_srcdir)/gpgme.spec.in > $(distdir)/gpgme.spec
44 echo "$(PACKAGE_VERSION)" > $(distdir)/VERSION
48 pref="#+macro: gpgme_" ;\
49 reldate="$$(date -u +%Y-%m-%d)" ;\
50 echo "$${pref}ver $(PACKAGE_VERSION)" ;\
51 echo "$${pref}date $${reldate}" ;\
52 list='$(DIST_ARCHIVES)'; for i in $$list; do \
53 case "$$i" in *.tar.bz2) \
54 echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
55 echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
56 echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
58 done ) | tee $(distdir).swdb
61 gen_start_date = 2011-12-01T00:00:00
64 if test -d $(top_srcdir)/.git; then \
65 (cd $(top_srcdir) && \
66 $(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
67 --amend=build-aux/git-log-fix \
68 --since=$(gen_start_date) ) > $(distdir)/cl-t; \
69 cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
70 rm -f $(distdir)/ChangeLog; \
71 mv $(distdir)/cl-t $(distdir)/ChangeLog; \