## Process this file with automake to produce Makefile.in ## ## $Id: Makefile.am 1017 2010-01-09 14:41:34Z peter $ # Copyright (C) 2005, 2006 Jari Häkkinen # Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson # Copyright (C) 2009, 2010 Peter Johansson # # This file is part of svndigest, http://dev.thep.lu.se/svndigest # # svndigest is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # svndigest is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with svndigest. If not, see . # -I arg should be the same as arg in AC_CONFIG_MACRO_DIR in configure.ac ACLOCAL_AMFLAGS = -I m4 SUBDIRS = lib bin man test EXTRA_DIST = build_support/move-if-change .release_year MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change clean-local: rm -rf svndigest *~ .PHONY: .release_year.tmp if HAVE_SVN_WC # update copyright year automatically (if we build from svn wc) $(srcdir)/.release_year: .release_year.tmp @$(MOVE_IF_CHANGE) .release_year.tmp $@ .release_year.tmp: @if ($(SVNVERSION) $(top_srcdir) | $(GREP) M > /dev/null); then \ date -u "+%Y" > .release_year.tmp; \ else \ cp $(srcdir)/.release_year $@; \ fi endif # This is a workaround to avoid a broken make when .m4 files are # renamed or deleted. Something similar will be provided by Automake 1.11 $(am__aclocal_m4_deps): ############################################################## ## ## Some rules useful for maintainer ## include $(srcdir)/maintainer.am # called within maintainer-check ## We do wanna run all tests here since test repository is not ## included in tarball, and thus some tests are skiped in distcheck. MAINTAINER_CHECK_LOCAL = all check # extra check in release rule RELEASE_LOCAL = check-svn_revision .PHONY: check-svn_revision check-svn_revision: @$(SVNVERSION) | $(EGREP) '^[0-9]+$$' || \ { echo incorrect svn revision - expected single unmodified revision 1>&2; \ exit 1; }