aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.am
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf@emagii.com>2023-03-06 14:31:58 +0100
committerNick Clifton <nickc@redhat.com>2023-03-07 13:53:11 +0000
commit3a80a48386ac12d04aa98802cf497a394d0bb74c (patch)
tree1595cb5b41539fe0d942ba35296259bb9271bdb9 /ld/Makefile.am
parent78ef6ab03f56ce83a606d974bb8a9f34b5d6e0b7 (diff)
downloadgdb-3a80a48386ac12d04aa98802cf497a394d0bb74c.zip
gdb-3a80a48386ac12d04aa98802cf497a394d0bb74c.tar.gz
gdb-3a80a48386ac12d04aa98802cf497a394d0bb74c.tar.bz2
Build ldint
Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
Diffstat (limited to 'ld/Makefile.am')
-rw-r--r--ld/Makefile.am16
1 files changed, 14 insertions, 2 deletions
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 813f19b..00118f8 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -128,7 +128,7 @@ CXXFLAGS_FOR_TARGET = `echo $(CXXFLAGS) | sed -e 's/-fsanitize=[^ ]*//g'`
transform = s/^ld-new$$/$(installed_linker)/;@program_transform_name@
bin_PROGRAMS = ld-new
-info_TEXINFOS = ld.texi
+info_TEXINFOS = ld.texi ldint.texi
ld_TEXINFOS = configdoc.texi
noinst_TEXINFOS = ldint.texi
man_MANS = ld.1
@@ -1060,7 +1060,19 @@ ld.1: $(srcdir)/ld.texi configdoc.texi
(rm -f $@.T$$$$ && exit 1)
$(AM_V_at)rm -f ld.pod
-MAINTAINERCLEANFILES = configdoc.texi ld.1
+# Build the man page from the texinfo file
+# The sed command removes the no-adjust Nroff command so that
+# the man output looks standard.
+ldint.1: $(srcdir)/ldint.texi configdoc.texi
+ $(AM_V_GEN)touch $@
+ $(AM_V_at)-$(TEXI2POD) $(MANCONF) < $(srcdir)/ldint.texi > ldint.pod
+ $(AM_V_at)-($(POD2MAN) ldint.pod | \
+ sed -e '/^.if n .na/d' > $@.T$$$$ && \
+ mv -f $@.T$$$$ $@) || \
+ (rm -f $@.T$$$$ && exit 1)
+ $(AM_V_at)rm -f ldint.pod
+
+MAINTAINERCLEANFILES = configdoc.texi ld.1 ldint.1
# We want to reconfigure if configure.host or configure.tgt changes.
# development.sh is used to determine -Werror default.