diff options
author | Roland McGrath <roland@gnu.org> | 2003-11-12 00:37:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-11-12 00:37:03 +0000 |
commit | 6e613d6aa9b126811a3b17c82294ba08ec0d197c (patch) | |
tree | cae37bcbe3d00874f99d450789289398ce223895 /manual | |
parent | 17c9ff7e68c8092ebe008b4322df262e488fe1e7 (diff) | |
download | glibc-6e613d6aa9b126811a3b17c82294ba08ec0d197c.zip glibc-6e613d6aa9b126811a3b17c82294ba08ec0d197c.tar.gz glibc-6e613d6aa9b126811a3b17c82294ba08ec0d197c.tar.bz2 |
2003-11-11 Roland McGrath <roland@redhat.com>
* manual/Makefile (info): Don't depend on dir-add.info.
(libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
(dir-add.info): Target removed, replaced with ...
(dir-add.texi): New target.
(distribute): Add it.
(install): Remove variant with --section arguments.
Let the @dircategory directives do their work.
(mostlyclean): Don't remove dir-add.info here.
(realclean): Remove dir-add.texi here.
* manual/libc.texinfo: @include dir-add.texi
* configure.in: Remove check for old Debian install-info.
* configure: Regenerated.
* config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/Makefile | 39 | ||||
-rw-r--r-- | manual/libc.texinfo | 3 |
2 files changed, 14 insertions, 28 deletions
diff --git a/manual/Makefile b/manual/Makefile index d9ae04b..8bcc5d0 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1992-1999, 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1992-1999,2000,2001,2002,2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -42,7 +42,7 @@ TEXI2PDF = texi2dvi --pdf ifneq ($(strip $(MAKEINFO)),:) all: info -info: libc.info dir-add.info +info: libc.info endif # scripts we use @@ -74,7 +74,8 @@ examples = $(filter-out $(foreach d, $(add-ons), ../$d/%.c.texi), \ chapters.% top-menu.%: libc-texinfo.sh $(texis) Makefile AWK=$(AWK) $(SHELL) $< '$(chapters)' '$(add-chapters)' '$(appendices)' -libc.dvi libc.pdf libc.info: chapters.texi top-menu.texi libm-err.texi +libc.dvi libc.pdf libc.info: chapters.texi top-menu.texi dir-add.texi \ + libm-err.texi libc.dvi libc.pdf: texinfo.tex html: libc/index.html @@ -91,11 +92,11 @@ stamp-summary: summary.awk $(filter-out summary.texi, $(texis)) # Generate a file which can be added to the `dir' content to provide direct # access to the documentation of the function, variables, and other # definitions. -dir-add.info: xtract-typefun.awk $(texis) - (echo "INFO-DIR-SECTION GNU C library functions"; \ - echo "START-INFO-DIR-ENTRY"; \ +dir-add.texi: xtract-typefun.awk $(texis) + (echo "@dircategory GNU C library functions and macros"; \ + echo "@direntry"; \ $(AWK) -f $^ | sort; \ - echo "END-INFO-DIR-ENTRY") > $@.new + echo "@end direntry") > $@.new mv -f $@.new $@ # The table with the math errors is generated. @@ -134,7 +135,7 @@ minimal-dist = summary.awk texis.awk tsort.awk libc-texinfo.sh libc.texinfo \ doc-only-dist = Makefile COPYING.LIB distribute = $(minimal-dist) $(examples) stdio-fp.c \ libc.info* libc.?? libc.??s texinfo.tex \ - xtract-typefun.awk dir-add.info dir libm-err-tab.pl + xtract-typefun.awk dir-add.texi dir libm-err-tab.pl export distribute := $(distribute) tar-it = tar chovf $@ $^ @@ -163,14 +164,14 @@ glibc-doc-$(edition).tar: $(doc-only-dist) $(distribute) .PHONY: mostlyclean distclean realclean clean mostlyclean: - -rm -f libc.dvi libc.pdf libc.tmp libc.info* dir-add.info + -rm -f libc.dvi libc.pdf libc.tmp libc.info* -rm -f $(objpfx)stubs $(objpfx)distinfo -rm -f $(foreach o,$(object-suffixes-for-libc),$(objpfx)stamp$o) clean: mostlyclean distclean: clean indices = cp fn pg tp vr ky realclean: distclean - -rm -f texis summary.texi stamp-summary *.c.texi + -rm -f texis summary.texi stamp-summary *.c.texi dir-add.texi -rm -f $(foreach index,$(indices),libc.$(index) libc.$(index)s) -rm -f libc.log libc.aux libc.toc dir-add.texinfo -rm -f top-menu.texi chapters.texi @@ -178,27 +179,11 @@ realclean: distclean .PHONY: install subdir_install installdirs install-data install-data subdir_install: install ifneq ($(strip $(MAKEINFO)),:) -# There are two variants of install-info out there. The GNU version -# knows about the INFO-DIR-SECTION tag, the Debian version doesn't. -ifneq ($(OLD_DEBIAN_INSTALL_INFO),yes) -install: $(inst_infodir)/libc.info dir-add.info +install: $(inst_infodir)/libc.info @if $(SHELL) -c '$(INSTALL_INFO) --version' >/dev/null 2>&1; then \ test -f $(inst_infodir)/dir || $(INSTALL_DATA) dir $(inst_infodir);\ $(INSTALL_INFO) --info-dir=$(inst_infodir) $(inst_infodir)/libc.info;\ - $(INSTALL_INFO) --info-dir=$(inst_infodir) dir-add.info;\ else : ; fi -else -install: $(inst_infodir)/libc.info dir-add.info - @if $(SHELL) -c '$(INSTALL_INFO) --version' >/dev/null 2>&1; then \ - test -f $(inst_infodir)/dir || $(INSTALL_DATA) dir $(inst_infodir);\ - $(INSTALL_INFO) --info-dir=$(inst_infodir) \ - --section '^GNU Libraries:' 'GNU Libraries:' \ - $(inst_infodir)/libc.info;\ - $(INSTALL_INFO) --info-dir=$(inst_infodir) \ - --section '^GNU C Library functions:' 'GNU C Library functions:' \ - dir-add.info;\ - else : ; fi -endif endif # Catchall implicit rule for other installation targets from the parent. install-%: ; diff --git a/manual/libc.texinfo b/manual/libc.texinfo index 84d11c3..152044d 100644 --- a/manual/libc.texinfo +++ b/manual/libc.texinfo @@ -9,6 +9,7 @@ @direntry * Libc: (libc). C library. @end direntry +@include dir-add.texi @c This tells texinfo.tex to use the real section titles in xrefs in @c place of the node name, when no section title is explicitly given. @@ -28,7 +29,7 @@ This file documents the GNU C library. This is Edition @value{EDITION}, last updated @value{UPDATED}, of @cite{The GNU C Library Reference Manual}, for Version @value{VERSION}. -Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc. +Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or |