Blame Makefile.am

Packit 0680ba
## Process this file with automake to produce Makefile.in
Packit 0680ba
# Copyright (C) 1992, 1999, 2000, 2002 Free Software Foundation, Inc.
Packit 0680ba
#
Packit 0680ba
# This file is part of Libgcrypt.
Packit 0680ba
#
Packit 0680ba
# Libgcrypt is free software; you can redistribute it and/or modify
Packit 0680ba
# it under the terms of the GNU Lesser General Public License as
Packit 0680ba
# published by the Free Software Foundation; either version 2.1 of
Packit 0680ba
# the License, or (at your option) any later version.
Packit 0680ba
#
Packit 0680ba
# Libgcrypt is distributed in the hope that it will be useful,
Packit 0680ba
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0680ba
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 0680ba
# GNU Lesser General Public License for more details.
Packit 0680ba
#
Packit 0680ba
# You should have received a copy of the GNU Lesser General Public
Packit 0680ba
# License along with this program; if not, write to the Free Software
Packit 0680ba
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Packit 0680ba
Packit 0680ba
ACLOCAL_AMFLAGS = -I m4
Packit 0680ba
DISTCHECK_CONFIGURE_FLAGS = --disable-random-daemon \
Packit 0680ba
  --enable-ciphers=arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia
Packit 0680ba
Packit 0680ba
# (A suitable gitlog-to-changelog script can be found in GnuPG master.)
Packit 0680ba
GITLOG_TO_CHANGELOG=gitlog-to-changelog
Packit 0680ba
Packit 0680ba
DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
Packit 0680ba
SUBDIRS =         compat mpi cipher random src doc tests
Packit 0680ba
Packit 0680ba
EXTRA_DIST = autogen.sh autogen.rc README.GIT LICENSES      	           \
Packit 0680ba
             ChangeLog-2011 build-aux/ChangeLog-2011 doc/ChangeLog-2011    \
Packit 0680ba
             m4/ChangeLog-2011 cipher/ChangeLog-2011 src/ChangeLog-2011    \
Packit 0680ba
             random/ChangeLog-2011 tests/ChangeLog-2011 mpi/ChangeLog-2011 \
Packit 0680ba
             build-aux/git-log-footer build-aux/git-log-fix
Packit 0680ba
Packit 0680ba
DISTCLEANFILES =
Packit 0680ba
Packit 0680ba
Packit 0680ba
# Add all the files listed in "distfiles" files to the distribution,
Packit 0680ba
# apply version number s to some files and create a VERSION file which
Packit 0680ba
# we need for the Prereq: patch file trick.
Packit 0680ba
dist-hook: gen-ChangeLog
Packit 0680ba
	@set -e; \
Packit 0680ba
	 for file in `cd $(top_srcdir); \
Packit 0680ba
	      find mpi -type f -name distfiles`; do \
Packit 0680ba
	    dir=`dirname $$file` ; $(mkinstalldirs) $(distdir)/$$dir ; \
Packit 0680ba
	    for i in distfiles `cat $(top_srcdir)/$$file` ; do \
Packit 0680ba
		ln $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i 2> /dev/null \
Packit 0680ba
		|| cp -p $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i; \
Packit 0680ba
	    done ; \
Packit 0680ba
	done
Packit 0680ba
	@set -e; \
Packit 0680ba
	echo "$(VERSION)" > $(distdir)/VERSION
Packit 0680ba
Packit 0680ba
Packit 0680ba
gen_start_date = 2011-12-01T14:00:00
Packit 0680ba
.PHONY: gen-ChangeLog
Packit 0680ba
gen-ChangeLog:
Packit 0680ba
	if test -d $(top_srcdir)/.git; then				\
Packit 0680ba
	  (cd $(top_srcdir) &&                      			\
Packit 0680ba
	    $(GITLOG_TO_CHANGELOG) --append-dot --tear-off		\
Packit 0680ba
	    --amend=build-aux/git-log-fix	 			\
Packit 0680ba
	    --since=$(gen_start_date) ) > $(distdir)/cl-t;		\
Packit 0680ba
          cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
Packit 0680ba
	  rm -f $(distdir)/ChangeLog;					\
Packit 0680ba
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
Packit 0680ba
	fi
Packit 0680ba
Packit 0680ba
Packit 0680ba
Packit 0680ba
stowinstall:
Packit 0680ba
	$(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/libgcrypt