1## Process this file with automake to generate Makefile.in 2# 3# Copyright (C) 2021 Free Software Foundation, Inc. 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 19AUTOMAKE_OPTIONS = foreign 20ACLOCAL_AMFLAGS = -I . -I .. -I ../.. 21 22bin_SCRIPTS = gp-display-html 23CLEANFILES = $(bin_SCRIPTS) 24 25do_subst = sed -e 's/BINUTILS_VERSION/$(VERSION)/' 26 27gp-display-html: gp-display-html.in Makefile 28 $(do_subst) < $(srcdir)/gp-display-html.in > $@ 29 chmod +x $@ 30 31if BUILD_MAN 32 33man_MANS = gp-display-html.1 34MAINTAINERCLEANFILES = $(man_MANS) 35 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 47INFO_PAGE = "gprofng" 48MANUAL = "User Commands" 49TEXT_GP_DISPLAY_HTML = "generate an HTML based directory structure to browse the profiles" 50 51HELP2MAN_OPT = --libtool --no-info --info-page=$(INFO_PAGE) --manual=$(MANUAL) 52H2M_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 56gp-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 60endif 61 62