source: trunk/man/Makefile.am @ 732

Last change on this file since 732 was 732, checked in by Peter Johansson, 13 years ago
  • configure.ac: removed test that we are either in svn wc or DEV_BUILD is false

refs #362

  • 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 732 2008-12-15 21:52:00Z 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 'ab help2man is required to generate this page' > $@
37endif
38
39
40# Checking that we don't ship a bogus man page, which might be created
41# if help2man is not available. (The check can be removed in a future
42# where we require Automake 1.11)
43dist-hook:
44  @if grep 'ab help2man is required to generate this page' \
45  $(srcdir)/svndigest.1 >/dev/null; then \
46          echo "error: svndigest.1 is bogus" >&2; \
47          echo "       you need help2man to generate a valid man page" >&2;\
48          echo "       install help2man, remove svndigest.1 and run 'make'" >&2;\
49          exit 1; \
50  fi
Note: See TracBrowser for help on using the repository browser.