source: trunk/man/Makefile.am

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

Merged release 0.10.3 to the trunk.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1598 2015-08-26 15:11:38Z jari $
4
5# Copyright (C) 2008, 2009, 2010, 2011, 2012 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)/man/svncopyright.1
25dist_man1_MANS += $(srcdir)/man/svndigest.1
26dist_man1_MANS += $(srcdir)/man/svndigest-copy-cache.1
27
28EXTRA_DIST += man/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 28.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# .revision changes for every revision.
38man_deps=$(top_srcdir)/configure $(srcdir)/Makefile.in \
39  $(srcdir)/man/svndigest.x $(top_srcdir)/.revision
40
41svndigest_man_deps = $(man_deps)
42svncopyright_man_deps = $(man_deps)
43svndigest_copy_cache_man_deps = $(man_deps)
44
45## we add dependencies to corresponding binaries in case when we
46## already have man files (at configure time) and/or are building from
47## a subversion WC. See comment above why we don't add this
48## dependencies all the time
49if MAN_TARBALL
50else
51svndigest_man_deps += bin/svndigest$(EXEEXT)
52svncopyright_man_deps += bin/svncopyright$(EXEEXT)
53svndigest_copy_cache_man_deps += bin/svndigest-copy-cache$(EXEEXT)
54endif
55
56if !HAVE_HELP2MAN
57dist-hook:
58  @echo "    help2man not found, cannot generate/update man pages."
59  exit 1
60endif
61
62$(srcdir)/man/svndigest.1: $(svndigest_man_deps)
63if HAVE_HELP2MAN
64  $(AM_V_at)$(HELP2MAN) --no-info -o $@ \
65  --include $(srcdir)/man/svndigest.x \
66  --version-option="--no-verbose --version" \
67  $(top_builddir)/bin/svndigest$(EXEEXT)
68else
69  @echo "    help2man not found, no $@ man page created"
70  @echo "        'make dist' and 'make distcheck' will fail"
71endif
72
73$(srcdir)/man/svncopyright.1: $(svncopyright_man_deps)
74if HAVE_HELP2MAN
75  $(AM_V_at)$(HELP2MAN) --no-info -o $@ \
76  --include $(srcdir)/man/svndigest.x \
77  --version-option="--no-verbose --version" \
78  $(top_builddir)/bin/svncopyright$(EXEEXT)
79else
80  @echo "    help2man not found, no $@ man page created"
81  @echo "        'make dist' and 'make distcheck' will fail"
82endif
83
84$(srcdir)/man/svndigest-copy-cache.1: $(svndigest_copy_cache_man_deps)
85if HAVE_HELP2MAN
86  $(AM_V_at)$(HELP2MAN) --no-info -o $@ \
87  --include $(srcdir)/man/svndigest.x \
88  --version-option="--no-verbose --version" \
89  $(top_builddir)/bin/svndigest-copy-cache$(EXEEXT)
90else
91  @echo "    help2man not found, no $@ man page created"
92  @echo "        'make dist' and 'make distcheck' will fail"
93endif
Note: See TracBrowser for help on using the repository browser.