Blame Makefile.am

Packit Service 672cf4
# Makefile.am - Top level Makefile for GPGME.
Packit Service 672cf4
# Copyright (C) 2000 Werner Koch (dd9jn)
Packit Service 672cf4
# Copyright (C) 2001, 2002, 2004, 2005, 2008, 2009 g10 Code GmbH
Packit Service 672cf4
#
Packit Service 672cf4
# This file is part of GPGME.
Packit Service 672cf4
#
Packit Service 672cf4
# GPGME is free software; you can redistribute it and/or modify it
Packit Service 672cf4
# under the terms of the GNU Lesser General Public License as
Packit Service 672cf4
# published by the Free Software Foundation; either version 2.1 of the
Packit Service 672cf4
# License, or (at your option) any later version.
Packit Service 672cf4
#
Packit Service 672cf4
# GPGME is distributed in the hope that it will be useful, but WITHOUT
Packit Service 672cf4
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
Packit Service 672cf4
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
Packit Service 672cf4
# Public License for more details.
Packit Service 672cf4
#
Packit Service 672cf4
# You should have received a copy of the GNU Lesser General Public
Packit Service 6c01f9
# License along with this program; if not, see <https://www.gnu.org/licenses/>.
Packit Service 672cf4
Packit Service 672cf4
## Process this file with automake to produce Makefile.in
Packit Service 672cf4
Packit Service 672cf4
ACLOCAL_AMFLAGS = -I m4
Packit Service 672cf4
Packit Service 672cf4
DISTCHECK_CONFIGURE_FLAGS =
Packit Service 672cf4
Packit Service 6c01f9
EXTRA_DIST = autogen.sh autogen.rc gpgme.spec.in                   	\
Packit Service 6c01f9
             ChangeLog-2011 m4/ChangeLog-2011 contrib/ChangeLog-2011
Packit Service 672cf4
Packit Service 672cf4
Packit Service 672cf4
if RUN_GPG_TESTS
Packit Service 672cf4
tests = tests
Packit Service 672cf4
else
Packit Service 672cf4
tests =
Packit Service 672cf4
endif
Packit Service 672cf4
Packit Service 672cf4
SUBDIRS = src ${tests} doc lang
Packit Service 672cf4
Packit Service 6c01f9
# Fix the version of the spec file and create a file named VERSION
Packit Service 6c01f9
# to be used for patch's Prereq: feature.
Packit Service 672cf4
dist-hook: gen-ChangeLog
Packit Service 672cf4
	@set -e; \
Packit Service 672cf4
	sed -e 's/@pkg_version@/$(PACKAGE_VERSION)/g' \
Packit Service 672cf4
	    $(top_srcdir)/gpgme.spec.in  > $(distdir)/gpgme.spec
Packit Service 6c01f9
	echo "$(PACKAGE_VERSION)" > $(distdir)/VERSION
Packit Service 672cf4
Packit Service 672cf4
distcheck-hook:
Packit Service 672cf4
	set -e; ( \
Packit Service 672cf4
	pref="#+macro: gpgme_" ;\
Packit Service 672cf4
	reldate="$$(date -u +%Y-%m-%d)" ;\
Packit Service 672cf4
        echo "$${pref}ver  $(PACKAGE_VERSION)"  ;\
Packit Service 672cf4
        echo "$${pref}date $${reldate}" ;\
Packit Service 672cf4
        list='$(DIST_ARCHIVES)'; for i in $$list; do \
Packit Service 672cf4
	  case "$$i" in *.tar.bz2) \
Packit Service 672cf4
            echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
Packit Service 672cf4
	    echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
Packit Service 672cf4
	    echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
Packit Service 672cf4
	  esac;\
Packit Service 672cf4
	done ) | tee $(distdir).swdb
Packit Service 672cf4
Packit Service 672cf4
Packit Service 672cf4
gen_start_date = 2011-12-01T00:00:00
Packit Service 6c01f9
.PHONY: gen-ChangeLog
Packit Service 672cf4
gen-ChangeLog:
Packit Service 672cf4
	if test -d $(top_srcdir)/.git; then				\
Packit Service 672cf4
	  (cd $(top_srcdir) &&                      			\
Packit Service 672cf4
	    $(GITLOG_TO_CHANGELOG) --append-dot --tear-off		\
Packit Service 672cf4
	    --amend=build-aux/git-log-fix				\
Packit Service 672cf4
	    --since=$(gen_start_date) ) > $(distdir)/cl-t;		\
Packit Service 672cf4
          cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
Packit Service 672cf4
	  rm -f $(distdir)/ChangeLog;					\
Packit Service 672cf4
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
Packit Service 672cf4
	fi