Makefile.in (install, [...]): Make these phony targets.
authorJeff Law <law@gcc.gnu.org>
Wed, 3 Sep 1997 04:25:26 +0000 (22:25 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 3 Sep 1997 04:25:26 +0000 (22:25 -0600)
        * Makefile.in (install, install-info, installdirs, uninstall): Make
        these phony targets.
So we don't overwrite a newer version of texinfo that might already be
installed on the system.

        * makeinfo/makeinfo.c: Maybe include <stdlib.h> for malloc et al.
        * util/install-info.c: Include <string*.h>.
        (my_strerror): Use strerror if available.
Avoids alpha bug and redecl of sys_errlist problems.

From-SVN: r15051

texinfo/ChangeLog
texinfo/Makefile.in
texinfo/makeinfo/makeinfo.c
texinfo/util/install-info.c

index aea2b3864d84d34e9eddf672e64ad31d028aa055..d12ca235640a1f7a9ad24817c7e9277d2efbfe3f 100644 (file)
@@ -1,3 +1,14 @@
+Tue Sep  2 22:25:34 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * Makefile.in (install, install-info, installdirs, uninstall): Make
+       these phony targets.
+
+Tue Sep  2 10:19:48 1997  Richard Henderson  <rth@cygnus.com>
+
+       * makeinfo/makeinfo.c: Maybe include <stdlib.h> for malloc et al.
+       * util/install-info.c: Include <string*.h>.
+       (my_strerror): Use strerror if available.
+
 Tue Aug 26 11:18:52 1997  Jeffrey A Law  (law@cygnus.com)
 
        * libtxi/Makefile.in: Add dependencies for memcpy, memmove and strdup.
index 4a5083853ebdc8f6cf0081f151ecd4af8869aa97..0539b9b71de17d09470b374d0106b34c7307f21e 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for Texinfo distribution.
-# $Id: Makefile.in,v 1.11 1996/10/04 18:40:33 karl Exp $
+# $Id: Makefile.in,v 1.1.1.1 1997/08/21 22:57:51 jason Exp $
 # 
 # Copyright (C) 1993, 96 Free Software Foundation, Inc.
 
@@ -87,40 +87,7 @@ installcheck:
 dvi: texinfo.dvi license.dvi lgpl.dvi
        @for dir in $(SUBDIRS); do cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@; cd ..; done
 
-install: all installdirs
-       test -f $(infodir)/dir || $(INSTALL_DATA) $(srcdir)/dir $(infodir)  
-       for dir in $(SUBDIRS); do \
-          echo making $@ in $$dir; \
-          (cd $$dir && $(MAKE) $(MDEFINES) $@ || exit 1); \
-       done
-       d=$(srcdir); test -f ./texinfo && d=.; \
-       (cd $$d && for f in texinfo* ; do \
-           $(INSTALL_DATA) $$f $(infodir)/$$f; done)
-       $(POST_INSTALL)
-       ./util/install-info --info-dir=$(infodir) $(infodir)/texinfo
-       @echo Please install $(srcdir)/texinfo.tex manually.
-
-installdirs:
-       -$(SHELL) $(srcdir)/util/mkinstalldirs $(bindir) $(datadir) $(infodir) $(mandir)
-
-.PHONY: install-info
-install-info: info
-       for dir in $(SUBDIRS); do \
-          echo making $@ in $$dir; \
-          (cd $$dir && $(MAKE) $(MDEFINES) $@ || exit 1); \
-       done
-       d=$(srcdir); test -f ./texinfo && d=.; \
-       (cd $$d; \
-         for f in texinfo* ; do \
-           $(INSTALL_DATA) $$f $(infodir)/$$f; \
-         done)
-
-uninstall:
-       for dir in $(SUBDIRS); do \
-         echo making $@ in $$dir; \
-         (cd $$dir && $(MAKE) $(MDEFINES) $@ || exit 1); \
-       done
-       $(RM) $(infodir)/texinfo $(infodir)/texinfo-*
+.PHONY: install installdirs installcheck install-info uninstall
 
 Makefile: Makefile.in config.status
        $(SHELL) ./config.status
index ee12ef27e71ff5895b4aa7a79fb49d16fb6ebd61..fddc6d9560c05e34463f1575e9b443f913ac1505 100644 (file)
@@ -1,5 +1,5 @@
 /* Makeinfo -- convert texinfo format files into info files.
-   $Id: makeinfo.c,v 1.37 1996/10/04 18:20:52 karl Exp $
+   $Id: makeinfo.c,v 1.1.1.1 1997/08/21 22:58:07 jason Exp $
 
    Copyright (C) 1987, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
 
@@ -79,6 +79,10 @@ int minor_version = 67;
 #include <perror.h>
 #endif
 
+#if defined (STDC_HEADERS)
+#include <stdlib.h>
+#endif
+
 #if defined (HAVE_STRING_H)
 #include <string.h>
 #else
index 53fa4aa111648e2d264dcbd6b29519bd5c11e871..6e5fc903e4e93675ea5e91edcb39b03d95f20e37 100644 (file)
@@ -1,7 +1,7 @@
 /* install-info -- create Info directory entry(ies) for an Info file.
    Copyright (C) 1996 Free Software Foundation, Inc.
 
-$Id: install-info.c,v 1.12 1996/10/03 23:13:36 karl Exp $
+$Id: install-info.c,v 1.1.1.1 1997/08/21 22:58:12 jason Exp $
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -24,6 +24,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <getopt.h>
 #include <sys/types.h>
 
+#if defined (HAVE_STRING_H)
+#include <string.h>
+#else
+#include <strings.h>
+#endif /* !HAVE_STRING_H */
+
 /* Get O_RDONLY.  */
 #ifdef HAVE_SYS_FCNTL_H
 #include <sys/fcntl.h>
@@ -342,12 +348,16 @@ char *
 my_strerror (errnum)
      int errnum;
 {
+#ifdef HAVE_STRERROR
+  return strerror(errnum);
+#else
   extern char *sys_errlist[];
   extern int sys_nerr;
 
   if (errnum >= 0 && errnum < sys_nerr)
     return sys_errlist[errnum];
   return (char *) "Unknown error";
+#endif
 }
 \f
 /* This table defines all the long-named options, says whether they