]>
Commit | Line | Data |
---|---|---|
bb368aad VM |
1 | ## Process this file with automake to generate Makefile.in |
2 | # | |
76bdc726 | 3 | # Copyright (C) 2021-2023 Free Software Foundation, Inc. |
bb368aad VM |
4 | # |
5 | # This file is free software; you can redistribute it and/or modify | |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 3 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; see the file COPYING3. If not see | |
17 | # <http://www.gnu.org/licenses/>. | |
18 | ||
19 | AUTOMAKE_OPTIONS = foreign | |
20 | ACLOCAL_AMFLAGS = -I . -I .. -I ../.. | |
21 | ||
bb368aad VM |
22 | bin_SCRIPTS = gp-display-html |
23 | CLEANFILES = $(bin_SCRIPTS) | |
bb368aad VM |
24 | |
25 | do_subst = sed -e 's/BINUTILS_VERSION/$(VERSION)/' | |
26 | ||
27 | gp-display-html: gp-display-html.in Makefile | |
28 | $(do_subst) < $(srcdir)/gp-display-html.in > $@ | |
29 | chmod +x $@ | |
30 | ||
31 | if BUILD_MAN | |
32 | ||
9d92d2cc VM |
33 | man_MANS = gp-display-html.1 |
34 | MAINTAINERCLEANFILES = $(man_MANS) | |
35 | ||
bb368aad VM |
36 | # Use this if the man pages depend on the version number. |
37 | # common_mandeps = $(top_srcdir)/../bfd/version.m4 | |
38 | # | |
39 | # Also change the dependence line below to this: | |
40 | # gp-display-html.1: $(common_mandeps) gp-display-html | |
41 | # | |
42 | # Currently, the version number shown in the man page is derived from | |
43 | # the output printed with --version. | |
44 | ||
45 | # These variables are used by help2man to generate the man pages. | |
46 | ||
47 | INFO_PAGE = "gprofng" | |
48 | MANUAL = "User Commands" | |
49 | TEXT_GP_DISPLAY_HTML = "generate an HTML based directory structure to browse the profiles" | |
50 | ||
51 | HELP2MAN_OPT = --libtool --no-info --info-page=$(INFO_PAGE) --manual=$(MANUAL) | |
52 | H2M_FILTER = | sed 's/\.TP/\.TP\n.B/' | sed 's/Commands:/\.SH COMMANDS/' \ | |
53 | | sed 's/See also:/\.SH SEE ALSO/' | sed 's/Documentation:/.SH DOCUMENTATION/' \ | |
54 | | sed 's/Limitations:/.SH LIMITATIONS/' | |
55 | ||
56 | gp-display-html.1: gp-display-html | |
57 | $(AM_V_GEN)_BUILDING_MANPAGE=1 $(HELP2MAN) $(HELP2MAN_OPT) \ | |
58 | --name=$(TEXT_GP_DISPLAY_HTML) ./gp-display-html $(H2M_FILTER) > $@ | |
59 | ||
60 | endif | |
61 |