source: trunk/man/Makefile.am @ 804

Last change on this file since 804 was 804, checked in by Peter Johansson, 12 years ago

fixed indentation

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 804 2009-07-10 23:39:37Z peter $
4
5# Copyright (C) 2008 Peter Johansson
6#
7# This file is part of svndigest, http://trac.thep.lu.se/trac/svndigest
8#
9# svndigest is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 3 of the License, or
12# (at your option) any later version.
13#
14# svndigest is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
21
22dist_man1_MANS = $(srcdir)/svndigest.1
23
24MAINTAINERCLEANFILES = $(dist_man1_MANS)
25
26if HAVE_HELP2MAN
27# we would like to depend on svndigest binary, but since svndigest.1
28# is distributed it is recommended to depend on only distributed files
29# (see automake manual 27.5).
30$(srcdir)/svndigest.1: $(top_srcdir)/configure $(srcdir)/Makefile.in
31  @$(HELP2MAN) --no-info -o $@ \
32  --version-option="--no-verbose --version" \
33  $(top_builddir)/bin/svndigest$(EXEEXT)
34else
35$(srcdir)/svndigest.1:
36  echo "WARNING: bogus svndigest.1 is created" >&2; \
37  echo 'ab help2man is required to generate this page' > $@
38
39# Checking that we don't ship a bogus man page, which might be created
40# if help2man is not available. (The check can be removed in a future
41# where we require Automake 1.11)
42dist-hook:
43        echo "ERROR: svndigest.1 is bogus" >&2; \
44        echo "       you need help2man to generate a valid man page" >&2;\
45        echo "       install help2man, re-run `configure'," >&2;\
46        echo "       remove svndigest.1 and run 'make'" >&2;\
47        exit 1;
48endif
Note: See TracBrowser for help on using the repository browser.