source: branches/0.10-stable/man/Makefile.am @ 1591

Last change on this file since 1591 was 1591, checked in by Jari Häkkinen, 6 years ago

Addresses #530. Allow build of svndigest but fail for 'make dist'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1591 2015-08-20 14:43:11Z jari $
4
5# Copyright (C) 2008, 2009, 2010, 2011 Peter Johansson
6# Copyright (C) 2015 Jari Häkkinen
7#
8# This file is part of svndigest, http://dev.thep.lu.se/trac/svndigest
9#
10# svndigest is free software; you can redistribute it and/or modify it
11# under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 3 of the License, or
13# (at your option) any later version.
14#
15# svndigest is distributed in the hope that it will be useful, but
16# WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18# General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
22
23dist_man1_MANS =
24dist_man1_MANS += $(srcdir)/svncopyright.1
25dist_man1_MANS += $(srcdir)/svndigest.1
26dist_man1_MANS += $(srcdir)/svndigest-copy-cache.1
27
28EXTRA_DIST = svndigest.x
29
30MAINTAINERCLEANFILES = $(dist_man1_MANS)
31
32# We would like to depend on binaries, but since svndigest.1
33# is distributed it is recommended to depend on only distributed files
34# (see automake manual 27.5).
35# We depend on configure to catch VERSION changes, Makefile.in to
36# catch rules changes, svndigest.x is an obvious dependency, and
37# lib/.revision changes for every revision.
38man_deps=$(top_srcdir)/configure $(srcdir)/Makefile.in \
39  $(srcdir)/svndigest.x $(top_srcdir)/.revision
40
41$(srcdir)/svndigest.1: $(man_deps)
42if HAVE_HELP2MAN
43  @$(HELP2MAN) --no-info -o $@ \
44  --include $(srcdir)/svndigest.x \
45  --version-option="--no-verbose --version" \
46  $(top_builddir)/bin/svndigest$(EXEEXT)
47else
48  @rm -f $@     # Remove stray man page to force 'make dist' to fail
49  @echo help2man not found, no $@ man page created
50  @echo make dist and make distcheck will fail
51endif
52
53$(srcdir)/svncopyright.1: $(man_deps)
54if HAVE_HELP2MAN
55  @$(HELP2MAN) --no-info -o $@ \
56  --include $(srcdir)/svndigest.x \
57  --version-option="--no-verbose --version" \
58  $(top_builddir)/bin/svncopyright$(EXEEXT)
59else
60  @rm -f $@     # Remove stray man page to force 'make dist' to fail
61  @echo help2man not found, no $@ man page created
62  @echo make dist and make distcheck will fail
63endif
64
65$(srcdir)/svndigest-copy-cache.1: $(man_deps)
66if HAVE_HELP2MAN
67  @$(HELP2MAN) --no-info -o $@ \
68  --include $(srcdir)/svndigest.x \
69  --version-option="--no-verbose --version" \
70  $(top_builddir)/bin/svndigest-copy-cache$(EXEEXT)
71else
72  @rm -f $@     # Remove stray man page to force 'make dist' to fail
73  @echo help2man not found, no $@ man page created
74  @echo make dist and make distcheck will fail
75endif
Note: See TracBrowser for help on using the repository browser.