Correct changelog snafu.
[binutils-gdb.git] / bfd / doc / Makefile.am
index d0ef00a00cac06131f5bbda4cd0dfe082cf8d257..29381b96b46c1ed0fc931411f032453284c19a08 100644 (file)
@@ -54,7 +54,7 @@ info_TEXINFOS = bfd.texinfo
 
 MKDOC = chew$(EXEEXT_FOR_BUILD)
 
-INCLUDES = -D_GNU_SOURCE -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
+INCLUDES = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
        -I$(srcdir)/../../intl -I../../intl
 
 $(MKDOC): chew.o
@@ -70,146 +70,122 @@ $(srcdir)/bfd.info bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
 # We can't replace these rules with an implicit rule, because
 # makes without VPATH support couldn't find the .h files in `..'.
 
-# We use s-XXX targets so that we can distribute the info files,
-# and permit people to rebuild them, without requiring the makeinfo
-# program.  If somebody tries to rebuild info, but none of the .texi
-# files have changed, then this Makefile will build chew, and will
-# build all of the stamp files, but will not actually have to rebuild
-# bfd.info.
+# We do not depend on chew directly so that we can distribute the info
+# files, and permit people to rebuild them, without requiring the makeinfo
+# program.  If somebody tries to rebuild info, but none of the .texi files
+# have changed, then nothing will be rebuilt.
 
-s-aoutx: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
+aoutx.texi: chew.c $(srcdir)/../aoutx.h $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
        $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
-       touch s-aoutx
-aoutx.texi: s-aoutx
 
-s-archive: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
+archive.texi: chew.c $(srcdir)/../archive.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
        $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi
-       touch s-archive
-archive.texi: s-archive
 
-s-archures: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
+archures.texi: chew.c $(srcdir)/../archures.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp
        $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi
-       touch s-archures
-archures.texi: s-archures
 
 # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
 # bfd.texinfo on an 8.3 filesystem.
-s-bfd: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
+bfdt.texi: chew.c $(srcdir)/../bfd.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp
        $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
-       touch s-bfd
-bfdt.texi: s-bfd
 
-s-cache: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
+cache.texi: chew.c $(srcdir)/../cache.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp
        $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi
-       touch s-cache
-cache.texi: s-cache
 
-s-coffcode: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
+coffcode.texi: chew.c $(srcdir)/../coffcode.h $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp
        $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
-       touch s-coffcode
-coffcode.texi: s-coffcode
 
-s-core: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
+core.texi: chew.c $(srcdir)/../corefile.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp
        $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi
-       touch s-core
-core.texi: s-core
 
-s-elf: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
+elf.texi: chew.c $(srcdir)/../elf.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp
        $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi
-       touch s-elf
-elf.texi: s-elf
 
-s-elfcode: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
+elfcode.texi: chew.c $(srcdir)/../elfcode.h $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp
        $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
-       touch s-elfcode
-elfcode.texi: s-elfcode
 
-s-mmo: $(MKDOC) $(srcdir)/../mmo.c $(srcdir)/doc.str
+mmo.texi: chew.c $(srcdir)/../mmo.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../mmo.c >mmo.tmp
        $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi
-       touch s-mmo
-mmo.texi: s-mmo
 
-s-format: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
+format.texi: chew.c $(srcdir)/../format.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp
        $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi
-       touch s-format
-format.texi: s-format
 
-s-libbfd: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
+libbfd.texi: chew.c $(srcdir)/../libbfd.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp
        $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
-       touch s-libbfd
-libbfd.texi: s-libbfd
 
-s-bfdio: $(MKDOC) $(srcdir)/../bfdio.c $(srcdir)/doc.str
+bfdio.texi: chew.c $(srcdir)/../bfdio.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp
        $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi
-       touch s-bfdio
-bfdio.texi: s-bfdio
 
-s-bfdwin: $(MKDOC) $(srcdir)/../bfdwin.c $(srcdir)/doc.str
+bfdwin.texi: chew.c $(srcdir)/../bfdwin.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp
        $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi
-       touch s-bfdwin
-bfdwin.texi: s-bfdwin
 
-s-opncls: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
+opncls.texi: chew.c $(srcdir)/../opncls.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.tmp
        $(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi
-       touch s-opncls
-opncls.texi: s-opncls
 
-s-reloc: $(MKDOC) $(srcdir)/../reloc.c $(srcdir)/doc.str
+reloc.texi: chew.c $(srcdir)/../reloc.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
        $(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi
-       touch s-reloc
-reloc.texi: s-reloc
 
-s-section: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
+section.texi: chew.c $(srcdir)/../section.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp
        $(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi
-       touch s-section
-section.texi: s-section
 
-s-syms: $(MKDOC) $(srcdir)/../syms.c $(srcdir)/doc.str
+syms.texi: chew.c $(srcdir)/../syms.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
        $(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi
-       touch s-syms
-syms.texi: s-syms
 
-s-targets: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
+targets.texi: chew.c $(srcdir)/../targets.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp
        $(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi
-       touch s-targets
-targets.texi: s-targets
 
-s-init: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
+init.texi: chew.c $(srcdir)/../init.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp
        $(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi
-       touch s-init
-init.texi: s-init
 
-s-hash: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
+hash.texi: chew.c $(srcdir)/../hash.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp
        $(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi
-       touch s-hash
-hash.texi: s-hash
 
-s-linker: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
+linker.texi: chew.c $(srcdir)/../linker.c $(srcdir)/doc.str
+       $(MAKE) $(MKDOC)
        ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp
        $(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi
-       touch s-linker
-linker.texi: s-linker
 
 LIBBFD_H_DEP = \
        $(srcdir)/../libbfd-in.h        \
@@ -299,7 +275,7 @@ noinst_TEXINFOS = bfdint.texi
 
 MOSTLYCLEANFILES = $(MKDOC) *.o
 
-CLEANFILES = s-* *.p *.ip
+CLEANFILES = *.p *.ip
 
 DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log