## Process this file with automake to produce Makefile.in ## ## $Id: Makefile.am 847 2009-11-17 01:38:52Z peter $ # Copyright (C) 2008, 2009 Peter Johansson # # This file is part of svndigest, http://trac.thep.lu.se/trac/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 . dist_man1_MANS = $(srcdir)/svndigest.1 EXTRA_DIST = svndigest.x MAINTAINERCLEANFILES = $(dist_man1_MANS) if HAVE_HELP2MAN # we would like to depend on svndigest binary, but since svndigest.1 # is distributed it is recommended to depend on only distributed files # (see automake manual 27.5). $(srcdir)/svndigest.1: $(top_srcdir)/configure $(srcdir)/Makefile.in \ $(srcdir)/svndigest.x @$(HELP2MAN) --no-info -o $@ \ --include $(srcdir)/svndigest.x \ --version-option="--no-verbose --version" \ $(top_builddir)/bin/svndigest$(EXEEXT) else $(srcdir)/svndigest.1: echo "WARNING: bogus svndigest.1 is created" >&2; \ echo 'ab help2man is required to generate this page' > $@ # Checking that we don't ship a bogus man page, which might be created # if help2man is not available. (The check can be removed in a future # where we require Automake 1.11) dist-hook: echo "ERROR: svndigest.1 is bogus" >&2; \ echo " you need help2man to generate a valid man page" >&2;\ echo " install help2man, re-run `configure'," >&2;\ echo " remove svndigest.1 and run 'make'" >&2;\ exit 1; endif