source: trunk/man/Makefile.am @ 1298

Last change on this file since 1298 was 1298, checked in by Peter Johansson, 11 years ago

improve dependency for man rules

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1298 2010-11-14 18:04:00Z peter $
4
5# Copyright (C) 2008, 2009, 2010 Peter Johansson
6#
7# This file is part of svndigest, http://dev.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 =
23dist_man1_MANS += $(srcdir)/svncopyright.1
24dist_man1_MANS += $(srcdir)/svndigest.1
25dist_man1_MANS += $(srcdir)/svndigest-copy-cache.1
26
27EXTRA_DIST = svndigest.x
28
29MAINTAINERCLEANFILES = $(dist_man1_MANS)
30
31# We would like to depend on binaries, but since svndigest.1
32# is distributed it is recommended to depend on only distributed files
33# (see automake manual 27.5).
34# We depend on configure to catch VERSION changes, Makefile.in to
35# catch rules changes, svndigest.x is an obvious dependency, and
36# subversion_info.cc changes for every revsion.
37man_deps=$(top_srcdir)/configure $(srcdir)/Makefile.in \
38  $(srcdir)/svndigest.x $(top_srcdir)/lib/subversion_info.cc
39
40$(srcdir)/svndigest.1: $(man_deps)
41  @$(HELP2MAN) --no-info -o $@ \
42  --include $(srcdir)/svndigest.x \
43  --version-option="--no-verbose --version" \
44  $(top_builddir)/bin/svndigest$(EXEEXT)
45
46$(srcdir)/svncopyright.1: $(man_deps)
47  @$(HELP2MAN) --no-info -o $@ \
48  --include $(srcdir)/svndigest.x \
49  --version-option="--no-verbose --version" \
50  $(top_builddir)/bin/svncopyright$(EXEEXT)
51
52$(srcdir)/svndigest-copy-cache.1: $(man_deps)
53  @$(HELP2MAN) --no-info -o $@ \
54  --include $(srcdir)/svndigest.x \
55  --version-option="--no-verbose --version" \
56  $(top_builddir)/bin/svndigest-copy-cache
57
Note: See TracBrowser for help on using the repository browser.