]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Include Makeconfig early enough. Add rules for %.info and %.dvi.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Aug 1998 18:41:25 +0000 (18:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Aug 1998 18:41:25 +0000 (18:41 +0000)
(dir-add.texinfo): Renamed from dir-add.texi.

manual/Makefile

index 914589d5f8e6f66ee65440fd4a3b25bc6b733293..172127e3b096ea6aca61152535e52deb37ef7c52 100644 (file)
@@ -26,6 +26,11 @@ GAWK = gawk
 # Allow override
 INSTALL_INFO = install-info
 
+# Get glibc's configuration info.
+ifneq (,$(wildcard ../Makeconfig))
+include ../Makeconfig
+endif
+
 .PHONY: all dvi info
 all: dvi
 dvi: libc.dvi
@@ -35,11 +40,6 @@ all: info
 info: libc.info dir-add.info
 endif
 
-# Get glibc's configuration info.
-ifneq (,$(wildcard ../Makeconfig))
-include ../Makeconfig
-endif
-
 # Set chapters and chapters-incl.
 -include chapters
 chapters: libc.texinfo
@@ -72,7 +72,7 @@ stamp-summary: summary.awk $(chapters) $(chapters-incl)
 # 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.texi: xtract-typefun.awk $(chapters) $(chapters-incl)
+dir-add.texinfo: xtract-typefun.awk $(chapters) $(chapters-incl)
        (echo "@dircategory GNU C library functions";                   \
         echo "@direntry";                                              \
         $(GAWK) -f $^ | sort;                                          \
@@ -88,6 +88,11 @@ dir-add.texi: xtract-typefun.awk $(chapters) $(chapters-incl)
            $< | expand > $@.new
        mv -f $@.new $@
 
+%.info: %.texinfo
+       $(MAKEINFO) $<
+
+%.dvi: %.texinfo
+       $(TEXI2DVI) $<
 
 minimal-dist = summary.awk move-if-change libc.texinfo $(chapters)     \
               $(patsubst %.c.texi,examples/%.c,                        \
@@ -98,7 +103,7 @@ distribute = $(minimal-dist)                                         \
                        $(minimal-dist)))                               \
             libc.info* libc.?? libc.??s texinfo.tex summary.texi       \
             stamp-summary chapters chapters-incl                       \
-            xtract-typefun.awk dir-add.texi dir-add.info dir
+            xtract-typefun.awk dir-add.texinfo dir-add.info dir
 export distribute := $(distribute)
 
 tar-it = tar chovf $@ $^
@@ -134,7 +139,7 @@ indices = cp fn pg tp vr ky
 realclean: distclean
        -rm -f chapters chapters-incl summary.texi stamp-summary *.c.texi
        -rm -f $(foreach index,$(indices),libc.$(index) libc.$(index)s)
-       -rm -f libc.log libc.aux libc.toc dir-add.texi
+       -rm -f libc.log libc.aux libc.toc dir-add.texinfo
 
 .PHONY: install subdir_install installdirs install-data
 install-data subdir_install: install