1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2021-2023 Free Software Foundation, Inc.
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.
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.
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/>.
19 AUTOMAKE_OPTIONS = foreign
20 ACLOCAL_AMFLAGS = -I . -I .. -I ../..
22 bin_SCRIPTS = gp-display-html
23 CLEANFILES = $(bin_SCRIPTS)
25 do_subst = sed -e 's/BINUTILS_VERSION/$(VERSION)/'
27 gp-display-html: gp-display-html.in Makefile
28 $(do_subst) < $(srcdir)/gp-display-html.in > $@
33 man_MANS = gp-display-html.1
34 MAINTAINERCLEANFILES = $(man_MANS)
36 # Use this if the man pages depend on the version number.
37 # common_mandeps = $(top_srcdir)/../bfd/version.m4
39 # Also change the dependence line below to this:
40 # gp-display-html.1: $(common_mandeps) gp-display-html
42 # Currently, the version number shown in the man page is derived from
43 # the output printed with --version.
45 # These variables are used by help2man to generate the man pages.
48 MANUAL = "User Commands"
49 TEXT_GP_DISPLAY_HTML = "generate an HTML based directory structure to browse the profiles"
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/'
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) > $@