Blame Makefile.am

Packit 3c2767
# Assuan top level Makefile
Packit 3c2767
# Copyright (C) 2001, 2002, 2003, 2007, 2011 Free Software Foundation, Inc.
Packit 3c2767
#
Packit 3c2767
# This file is part of Assuan.
Packit 3c2767
#
Packit 3c2767
# Assuan is free software; you can redistribute it and/or modify it
Packit 3c2767
# under the terms of the GNU Lesser General Public License as
Packit 3c2767
# published by the Free Software Foundation; either version 2.1 of
Packit 3c2767
# the License, or (at your option) any later version.
Packit 3c2767
#
Packit 3c2767
# Assuan is distributed in the hope that it will be useful, but
Packit 3c2767
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 3c2767
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 3c2767
# Lesser General Public License for more details.
Packit 3c2767
#
Packit 3c2767
# You should have received a copy of the GNU Lesser General Public
Packit 3c2767
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit 3c2767
# SPDX-License-Identifier: LGPL-2.1+
Packit 3c2767
## Process this file with automake to produce Makefile.in
Packit 3c2767
Packit 3c2767
Packit 3c2767
ACLOCAL_AMFLAGS = -I m4
Packit 3c2767
DISTCHECK_CONFIGURE_FLAGS = --enable-doc
Packit 3c2767
Packit 3c2767
# (A suitable gitlog-to-changelog script can be found in GnuPG master.)
Packit 3c2767
GITLOG_TO_CHANGELOG=gitlog-to-changelog
Packit 3c2767
Packit 3c2767
EXTRA_DIST = autogen.sh autogen.rc README.GIT VERSION                   \
Packit 3c2767
             ChangeLog-2011 doc/ChangeLog-2011 src/ChangeLog-2011 	\
Packit 3c2767
             tests/ChangeLog-2011 contrib/ChangeLog-2011     		\
Packit 3c2767
             build-aux/git-log-footer build-aux/git-log-fix
Packit 3c2767
Packit 3c2767
if BUILD_DOC
Packit 3c2767
doc = doc
Packit 3c2767
else
Packit 3c2767
doc =
Packit 3c2767
endif
Packit 3c2767
Packit 3c2767
SUBDIRS = m4 src $(doc) tests
Packit 3c2767
Packit 3c2767
Packit 3c2767
dist-hook: gen-ChangeLog
Packit 3c2767
Packit 3c2767
Packit 3c2767
distcheck-hook:
Packit 3c2767
	set -e; ( \
Packit 3c2767
	pref="#+macro: $$(echo $(PACKAGE_NAME)|tr '-' '_')_" ;\
Packit 3c2767
	reldate="$$(date -u +%Y-%m-%d)" ;\
Packit 3c2767
        echo "$${pref}ver  $(PACKAGE_VERSION)"  ;\
Packit 3c2767
        echo "$${pref}date $${reldate}" ;\
Packit 3c2767
        list='$(DIST_ARCHIVES)'; for i in $$list; do \
Packit 3c2767
	  case "$$i" in *.tar.bz2) \
Packit 3c2767
            echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
Packit 3c2767
	    echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
Packit 3c2767
	    echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
Packit 3c2767
	  esac;\
Packit 3c2767
	done ) | tee $(distdir).swdb
Packit 3c2767
Packit 3c2767
Packit 3c2767
gen_start_date = 2011-12-01T00:00:00
Packit 3c2767
.PHONY: gen-ChangeLog
Packit 3c2767
gen-ChangeLog:
Packit 3c2767
	set -e;                         				\
Packit 3c2767
	if test -d $(top_srcdir)/.git; then				\
Packit 3c2767
	  (cd $(top_srcdir) &&                      			\
Packit 3c2767
	    $(GITLOG_TO_CHANGELOG) --append-dot --tear-off		\
Packit 3c2767
	    --amend=build-aux/git-log-fix  --tear-off			\
Packit 3c2767
	    --since=$(gen_start_date) ) > $(distdir)/cl-t;		\
Packit 3c2767
          cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
Packit 3c2767
	  rm -f $(distdir)/ChangeLog;					\
Packit 3c2767
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
Packit 3c2767
	fi
Packit 3c2767
Packit 3c2767
Packit 3c2767
stowinstall:
Packit 3c2767
	$(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/libassuan