724 |
09 Dec 08 |
peter |
## Process this file with automake to produce Makefile.in |
724 |
09 Dec 08 |
peter |
2 |
## |
724 |
09 Dec 08 |
peter |
## $Id$ |
724 |
09 Dec 08 |
peter |
4 |
|
1532 |
05 Oct 12 |
peter |
# Copyright (C) 2008, 2009, 2010, 2011, 2012 Peter Johansson |
1598 |
26 Aug 15 |
jari |
# Copyright (C) 2015 Jari Häkkinen |
1635 |
30 Mar 23 |
peter |
# Copyright (C) 2023 Peter Johansson |
724 |
09 Dec 08 |
peter |
8 |
# |
1059 |
18 May 10 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/trac/svndigest |
724 |
09 Dec 08 |
peter |
10 |
# |
724 |
09 Dec 08 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
724 |
09 Dec 08 |
peter |
# under the terms of the GNU General Public License as published by |
724 |
09 Dec 08 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
724 |
09 Dec 08 |
peter |
# (at your option) any later version. |
724 |
09 Dec 08 |
peter |
15 |
# |
724 |
09 Dec 08 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
724 |
09 Dec 08 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
724 |
09 Dec 08 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
724 |
09 Dec 08 |
peter |
# General Public License for more details. |
724 |
09 Dec 08 |
peter |
20 |
# |
724 |
09 Dec 08 |
peter |
# You should have received a copy of the GNU General Public License |
724 |
09 Dec 08 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
724 |
09 Dec 08 |
peter |
23 |
|
1065 |
06 Jun 10 |
peter |
24 |
dist_man1_MANS = |
1613 |
15 Feb 23 |
peter |
25 |
dist_man1_MANS += man/svncopyright.1 |
1613 |
15 Feb 23 |
peter |
26 |
dist_man1_MANS += man/svndigest.1 |
1613 |
15 Feb 23 |
peter |
27 |
dist_man1_MANS += man/svndigest-copy-cache.1 |
724 |
09 Dec 08 |
peter |
28 |
|
1525 |
01 Oct 12 |
peter |
29 |
EXTRA_DIST += man/svndigest.x |
805 |
11 Jul 09 |
peter |
30 |
|
1613 |
15 Feb 23 |
peter |
31 |
man_deps = |
1613 |
15 Feb 23 |
peter |
32 |
man_deps += $(srcdir)/man/svndigest.x |
1613 |
15 Feb 23 |
peter |
33 |
man_deps += man/.dirstamp |
1613 |
15 Feb 23 |
peter |
34 |
man_deps += man/Makefile.am |
724 |
09 Dec 08 |
peter |
35 |
|
1613 |
15 Feb 23 |
peter |
36 |
if HAVE_HELP2MAN |
1613 |
15 Feb 23 |
peter |
37 |
man_deps += .timestamp |
1613 |
15 Feb 23 |
peter |
## use env variable SOURCE_DATE_EPOCH to make the dates in help2man |
1613 |
15 Feb 23 |
peter |
## reflect '.timestamp' rather than now. |
1613 |
15 Feb 23 |
peter |
40 |
run_help2man = SOURCE_DATE_EPOCH=`cat .timestamp` \ |
1613 |
15 Feb 23 |
peter |
41 |
&& : $${TC=UTC0} && export TC \ |
1615 |
21 Feb 23 |
peter |
42 |
&& export SOURCE_DATE_EPOCH \ |
1613 |
15 Feb 23 |
peter |
43 |
&& $(HELP2MAN) |
1529 |
02 Oct 12 |
peter |
44 |
else |
1613 |
15 Feb 23 |
peter |
45 |
man_deps += build_support/dummy_help2man.sh |
1613 |
15 Feb 23 |
peter |
46 |
run_help2man = $(SHELL) build_support/dummy_help2man.sh |
1529 |
02 Oct 12 |
peter |
47 |
|
1617 |
21 Feb 23 |
peter |
48 |
yat_am_dist_hooks += dist-no-help2man-abort |
1613 |
15 Feb 23 |
peter |
49 |
dist-no-help2man-abort: |
1613 |
15 Feb 23 |
peter |
50 |
@echo " help2man not found, cannot generate/update man pages." >&2 |
1613 |
15 Feb 23 |
peter |
51 |
@exit 1 |
1598 |
26 Aug 15 |
jari |
52 |
endif |
1598 |
26 Aug 15 |
jari |
53 |
|
1613 |
15 Feb 23 |
peter |
54 |
$(dist_man1_MANS): $(man_deps) |
1613 |
15 Feb 23 |
peter |
55 |
|
1613 |
15 Feb 23 |
peter |
56 |
man/.dirstamp: |
1613 |
15 Feb 23 |
peter |
57 |
@$(MKDIR_P) man |
1613 |
15 Feb 23 |
peter |
58 |
@: > $@ |
1613 |
15 Feb 23 |
peter |
59 |
|
1613 |
15 Feb 23 |
peter |
60 |
distclean-local: |
1613 |
15 Feb 23 |
peter |
61 |
test x$(srcdir) = x$(builddir) || rm -f $(dist_man1_MANS) |
1613 |
15 Feb 23 |
peter |
62 |
|
1613 |
15 Feb 23 |
peter |
63 |
DISTCLEANFILES += man/.dirstamp |
1613 |
15 Feb 23 |
peter |
64 |
|
1613 |
15 Feb 23 |
peter |
65 |
man/svndigest.1: bin/svndigest$(EXEEXT) |
1613 |
15 Feb 23 |
peter |
66 |
$(AM_V_GEN)$(run_help2man) --no-info -o $@ \ |
1525 |
01 Oct 12 |
peter |
67 |
--include $(srcdir)/man/svndigest.x \ |
724 |
09 Dec 08 |
peter |
68 |
--version-option="--no-verbose --version" \ |
1613 |
15 Feb 23 |
peter |
69 |
bin/svndigest$(EXEEXT) |
1065 |
06 Jun 10 |
peter |
70 |
|
1613 |
15 Feb 23 |
peter |
71 |
man/svncopyright.1: bin/svncopyright$(EXEEXT) |
1613 |
15 Feb 23 |
peter |
72 |
$(AM_V_GEN)$(run_help2man) --no-info -o $@ \ |
1525 |
01 Oct 12 |
peter |
73 |
--include $(srcdir)/man/svndigest.x \ |
1065 |
06 Jun 10 |
peter |
74 |
--version-option="--no-verbose --version" \ |
1613 |
15 Feb 23 |
peter |
75 |
bin/svncopyright$(EXEEXT) |
1065 |
06 Jun 10 |
peter |
76 |
|
1613 |
15 Feb 23 |
peter |
77 |
man/svndigest-copy-cache.1: bin/svndigest-copy-cache$(EXEEXT) |
1613 |
15 Feb 23 |
peter |
78 |
$(AM_V_GEN)$(run_help2man) --no-info -o $@ \ |
1525 |
01 Oct 12 |
peter |
79 |
--include $(srcdir)/man/svndigest.x \ |
1297 |
14 Nov 10 |
peter |
80 |
--version-option="--no-verbose --version" \ |
1613 |
15 Feb 23 |
peter |
81 |
bin/svndigest-copy-cache$(EXEEXT) |