Fix pthread_setname_np build error
[deliverable/binutils-gdb.git] / binutils / doc / Makefile.am
index 64c35fd035549b9c63aa420c575e58d253ab020e..c58fa689f929e611dda763e2a95e794086075673 100644 (file)
@@ -1,6 +1,23 @@
 ## Process this file with automake to generate Makefile.in
-
-AUTOMAKE_OPTIONS = cygnus
+#
+#   Copyright (C) 2012-2019 Free Software Foundation, Inc.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING3.  If not see
+# <http://www.gnu.org/licenses/>.
+#
+
+AUTOMAKE_OPTIONS = info-in-builddir no-texinfo.tex foreign
 
 # What version of the manual you want; "all" includes everything
 CONFIG=all
@@ -8,7 +25,7 @@ CONFIG=all
 # Options to extract the man page from as.texinfo
 MANCONF = -Dman
 
-TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
+TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
 
 POD2MAN = pod2man --center="GNU Development Tools" \
         --release="binutils-$(VERSION)" --section=1
@@ -18,7 +35,6 @@ man_MANS = \
        addr2line.1 \
        ar.1 \
        dlltool.1 \
-       nlmconv.1 \
        nm.1 \
        objcopy.1 \
        objdump.1 \
@@ -27,19 +43,18 @@ man_MANS = \
        size.1 \
        strings.1 \
        strip.1 \
+       elfedit.1 \
        windres.1 \
+       windmc.1 \
        $(DEMANGLER_NAME).1
 
 info_TEXINFOS = binutils.texi
-binutils_TEXINFOS = config.texi
 binutils_TEXI = $(srcdir)/binutils.texi
 
-config.texi: $(srcdir)/../../bfd/configure $(binutils_TEXI)
-       rm -f config.texi
-       eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
-         echo "@set VERSION $$VERSION" > $@
-       echo "@set UPDATED `date "+%B %Y"`" >> config.texi
-       echo "@set top_srcdir $(top_srcdir)" >> config.texi
+AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
+                  -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
+TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
+                   -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
 
 # Man page generation from texinfo
 addr2line.1:   $(binutils_TEXI)
@@ -63,13 +78,6 @@ dlltool.1:   $(binutils_TEXI)
                mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
        rm -f dlltool.pod
 
-nlmconv.1:     $(binutils_TEXI)
-       touch $@
-       -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
-       -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
-               mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
-       rm -f nlmconv.pod
-
 nm.1:  $(binutils_TEXI)
        touch $@
        -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
@@ -126,6 +134,13 @@ strip.1:   $(binutils_TEXI)
                mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
        rm -f strip.pod
 
+elfedit.1:     $(binutils_TEXI)
+       touch $@
+       -$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod
+       -($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
+               mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
+       rm -f elfedit.pod
+
 windres.1:     $(binutils_TEXI)
        touch $@
        -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
@@ -133,6 +148,13 @@ windres.1: $(binutils_TEXI)
                mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
        rm -f windres.pod
 
+windmc.1:      $(binutils_TEXI)
+       touch $@
+       -$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
+       -($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
+               mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
+       rm -f windmc.pod
+
 cxxfilt.man:   $(binutils_TEXI)
        touch $@
        -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
@@ -140,8 +162,7 @@ cxxfilt.man:        $(binutils_TEXI)
                mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
        rm -f $(DEMANGLER_NAME).pod
 
-MAINTAINERCLEANFILES = config.texi
-MOSTLYCLEANFILES     = $(DEMANGLER_NAME).1
+MOSTLYCLEANFILES     = $(man_MANS) binutils.info cxxfilt.man
 
 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
        if test -f cxxfilt.man; then \
@@ -153,10 +174,6 @@ $(DEMANGLER_NAME).1: cxxfilt.man Makefile
            -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
                > $(DEMANGLER_NAME).1
 
-# We want install to imply install-info as per GNU standards, despite the
-# cygnus option.
-install-data-local: install-info
-
 # Maintenance
 
 # We need it for the taz target in ../../Makefile.in.
This page took 0.023905 seconds and 4 git commands to generate.