source: trunk/man/Makefile.am @ 724

Last change on this file since 724 was 724, checked in by Peter Johansson, 13 years ago
  • README.developer: adding text on Requirements for building from svn checkout
  • configure.ac: support for help2man and new man/Makefile
  • lib/OptionVersion.cc lib/OptionVersion.h bin/Parameter.cc: changed --version output so when used in combination with --no-verbose it is compliant with help2man
  • lib/utility.cc: removed function version_string not used anymore

closes #361

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 724 2008-12-09 13:34:16Z 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 = svndigest.1
23
24MAINTAINERCLEANFILES = $(dist_man1_MANS)
25
26# we would like to depend on svndigest binary, but since svndigest.1
27# is distributed it is recommended to depend on only distributed files
28# (see automake manual 27.5).
29svndigest.1: $(top_srcdir)/configure $(srcdir)/Makefile.in
30  @$(HELP2MAN) --no-info -o $@ \
31  --version-option="--no-verbose --version" \
32  $(top_builddir)/bin/svndigest$(EXEEXT)
33
34
35# Checking that we don't ship a bogus man page, which might be created
36# if help2man is not available. (The check can be removed in a future
37# where we require Automake 1.11)
38dist-hook:
39  @if grep 'ab help2man is required to generate this page' \
40  svndigest.1 >/dev/null; then \
41          echo "error: svndigest.1 is bogus" >&2; \
42          echo "       you need help2man to generate a valid man page" >&2;\
43          echo "       install help2man, remove svndigest.1 and run 'make'" >&2;\
44          exit 1; \
45  fi
Note: See TracBrowser for help on using the repository browser.