Compare commits

...

40 Commits

Author SHA1 Message Date
Roland McGrath
eb3b7904f0 Regenerated 1995-05-10 21:59:24 +00:00
Roland McGrath
bbfb270092 Regenerated for 3.73.3 1995-05-10 21:58:53 +00:00
Roland McGrath
c18253b59b Updated from libc 1995-05-10 21:57:56 +00:00
Roland McGrath
41177916df . 1995-05-10 21:46:30 +00:00
Roland McGrath
7acd99c5e6 AIX support from Tim Bell <tbel@afsmail.cern.ch>:
[_AIX] (LOAD_AVE_TYPE, FSCALE, NLIST_STRUCT): Define these for AIX.
(getloadavg) [_AIX]: Use `knlist' instead of `nlist'.
1995-05-10 15:03:48 +00:00
Roland McGrath
d6c62b351f . 1995-05-09 22:51:11 +00:00
Roland McGrath
c9c43b0871 ($(infodir)/make.info): Make sure $$dir is set in install-info cmd. 1995-05-09 21:14:48 +00:00
Roland McGrath
13e8568f03 (print_file): Grok update_status of 1 for -q. 1995-05-03 19:53:19 +00:00
Roland McGrath
cebdba9dfa Move include of config.h before all others. 1995-04-29 19:47:58 +00:00
Roland McGrath
4ea152e71b Regenerated 1995-04-27 16:57:09 +00:00
Roland McGrath
443f39f4f7 Regenerated for 3.73.2 1995-04-27 16:56:40 +00:00
Roland McGrath
675981bc4f Updated from libc 1995-04-27 16:43:27 +00:00
Roland McGrath
11af972f87 . 1995-04-27 16:41:39 +00:00
Roland McGrath
d9c126da40 . 1995-04-27 16:41:12 +00:00
Roland McGrath
7170467928 . 1995-04-27 16:37:56 +00:00
Roland McGrath
81699266d3 (remove_intermediates): Fix inverted test to bail under -n for signal case.
Bail under -q or -t.
Skip files with update_status==-1.
1995-04-26 21:27:19 +00:00
Roland McGrath
cbdb3653da [HAVE_UNISTD_H]: Include unistd.h so it can declare sys_siglist. 1995-04-26 21:19:26 +00:00
Roland McGrath
5d82479d89 (job_next_command): Skip empty lines.
(new_job): Don't test the return of job_next_command.
Just let start_waiting_job handle the case of empty commands.
1995-04-26 21:15:25 +00:00
Roland McGrath
ed0d607279 . 1995-04-19 22:20:52 +00:00
Roland McGrath
855bd6896d [__MSDOS__]: Include <fcntl.h>. From DJ Delorie. 1995-04-19 18:09:30 +00:00
Roland McGrath
179ef370e8 Regenerated for 3.73.1 1995-04-19 07:29:56 +00:00
Roland McGrath
01dc9a22f9 Updated from libc 1995-04-19 07:28:27 +00:00
Roland McGrath
bc15ada5ed . 1995-04-19 07:26:32 +00:00
Roland McGrath
fce5e4a9b9 . 1995-04-08 18:54:00 +00:00
Roland McGrath
07a45cd0af (notice_finished_file): Set FILE->update_status to zero if it's -1. 1995-04-08 18:52:42 +00:00
Roland McGrath
226a132e31 (CPPFLAGS): Use $(defines) too. 1995-04-05 04:53:56 +00:00
Roland McGrath
b59f5f30b9 Regenerated for 3.73 1995-04-05 04:41:14 +00:00
Roland McGrath
acdd73ea34 . 1995-04-05 04:21:27 +00:00
Roland McGrath
38b5b27eb5 Add '95 to copyright years. 1995-04-05 03:32:21 +00:00
Roland McGrath
e8325b9be2 (Options/Recursion): Correction: -I is indeed passed in MAKEFLAGS. 1995-04-05 03:29:01 +00:00
Roland McGrath
f8eb0fc41b . 1995-03-30 10:02:35 +00:00
Roland McGrath
ea38e1fe78 (main): Fixed braino in assert. 1995-03-28 18:59:57 +00:00
Roland McGrath
ed276c008d Regenerated for 3.72.13 1995-03-28 18:28:18 +00:00
Roland McGrath
910d25619e (CPPFLAGS): Use $(CPPFLAGS) instead of $(defines). 1995-03-28 18:24:20 +00:00
Roland McGrath
2ae5430550 Remade with Autoconf 2.3 1995-03-28 18:04:30 +00:00
Roland McGrath
e53ac8a6fc . 1995-03-27 10:55:57 +00:00
Roland McGrath
cb51d55ab2 Avoid string in assert expression. Some systems are broken. 1995-03-27 10:28:35 +00:00
Roland McGrath
0b4723a689 . 1995-03-27 10:02:36 +00:00
Roland McGrath
3f9ce84b4a Include <assert.h>. 1995-03-24 23:39:24 +00:00
Roland McGrath
bdbe8501c6 (main): Handle 1 and 2 returns from update_goal_chain makefile run
properly.
1995-03-24 23:27:05 +00:00
18 changed files with 5183 additions and 5321 deletions

5036
ChangeLog

File diff suppressed because it is too large Load Diff

4980
ChangeLog.1 Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
# GNU Make-specific makefile for GNU Make.
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
# Copyright (C) 1990, 91, 92, 93, 94, 95 Free Software Foundation, Inc.
# This file is part of GNU Make.
#
# GNU Make is free software; you can redistribute it and/or modify
@@ -50,6 +50,7 @@ exec_prefix = $(prefix)
extras := $(filter-out getloadavg.o @%@,$(extras)) getloadavg.o
LOADLIBES := $(filter-out @%@,$(LOADLIBES))
ALLOCA := $(filter-out @%@,$(ALLOCA))
CPPFLAGS := $(filter-out @%@,$(defines) $(CPPFLAGS)) -DHAVE_CONFIG_H
ifdef AC_MACRODIR
configure config.h.in: $(patsubst %,$(AC_MACRODIR)/%.m4,acspecific acgeneral)
@@ -92,8 +93,6 @@ GLOB =
else
CPPFLAGS := $(filter-out @%@,$(CPPFLAGS)) -Iglob
endif # works-for-make
endif # $(libc_dir)
endif # !no_libc
@@ -114,7 +113,7 @@ $(archpfx)load.o: load.c
$(archpfx)load.dep: load.c
$(mkdep) $(LOAD_AVG) $< | sed 's,$*\.o,& $@,' > $@
CPPFLAGS := -I$(ARCH) $(CPPFLAGS) -DHAVE_CONFIG_H $(filter-out @%@,$(defines))
CPPFLAGS := -I$(ARCH) -DHAVE_CONFIG_H $(filter-out @%@,$(CPPFLAGS))
ifneq "$(wildcard $(ARCH)/makefile)" ""
include $(ARCH)/makefile

View File

@@ -216,6 +216,7 @@ $(infodir)/make.info: make.info
# We use `$(SHELL) -c' because some shells do not
# fail gracefully when there is an unknown command.
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
if [ -r ./make.info ]; then dir=.; else dir=$(srcdir); fi; \
install-info --infodir=$(infodir) $$dir/make.info; \
else true; fi
@@ -284,7 +285,7 @@ $(objs): config.h
commands.o : commands.c make.h dep.h commands.h file.h variable.h job.h
job.o: job.c make.h commands.h job.h file.h variable.h
dir.o: dir.c make.h
file.o : file.c make.h commands.h dep.h file.h variable.h
file.o: file.c make.h commands.h dep.h file.h variable.h
misc.o: misc.c make.h dep.h
main.o: main.c make.h commands.h dep.h file.h variable.h job.h getopt.h
read.o: read.c make.h commands.h dep.h file.h variable.h glob/glob.h
@@ -294,7 +295,7 @@ implicit.o : implicit.c make.h rule.h dep.h file.h
default.o: default.c make.h rule.h dep.h file.h commands.h variable.h
variable.o : variable.c make.h commands.h variable.h dep.h file.h
expand.o: expand.c make.h commands.h file.h variable.h
function.o : function.c make.h variable.h dep.h commands.h job.h
function.o: function.c make.h variable.h dep.h commands.h job.h
vpath.o : vpath.c make.h file.h variable.h
version.o: version.c
ar.o : ar.c make.h file.h dep.h

2
README
View File

@@ -1,4 +1,4 @@
This directory contains the 3.72.12 test release of GNU Make.
This directory contains the 3.73.3 test release of GNU Make.
All bugs reported for previous test releases have been fixed.
Some bugs surely remain.

View File

@@ -216,6 +216,7 @@ $(infodir)/make.info: make.info
# We use `$(SHELL) -c' because some shells do not
# fail gracefully when there is an unknown command.
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
if [ -r ./make.info ]; then dir=.; else dir=$(srcdir); fi; \
install-info --infodir=$(infodir) $$dir/make.info; \
else true; fi

10
configure vendored
View File

@@ -2,7 +2,7 @@
# From configure.in Id: configure.in,v 1.48 1995/03/21 21:23:26 roland Exp
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.2.1
# Generated automatically using autoconf version 2.3
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
@@ -219,7 +219,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 2.2.1"
echo "configure generated by autoconf version 2.3"
exit 0 ;;
-with-* | --with-*)
@@ -2686,7 +2686,7 @@ do
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.2.1"
echo "$CONFIG_STATUS generated by autoconf version 2.3"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
@@ -2697,9 +2697,7 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo Makefile build.sh config.h | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
trap 'rm -fr `echo "Makefile build.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;

17
file.c
View File

@@ -1,5 +1,5 @@
/* Target file hash table management for GNU Make.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94 Free Software Foundation, Inc.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -21,6 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "dep.h"
#include "file.h"
#include "variable.h"
#include <assert.h>
/* Hash table of files the makefile knows how to make. */
@@ -294,7 +295,9 @@ remove_intermediates (sig)
register struct file *f;
char doneany;
if (!sig && just_print_flag)
if (question_flag || touch_flag)
return;
if (sig && just_print_flag)
return;
doneany = 0;
@@ -303,7 +306,11 @@ remove_intermediates (sig)
if (f->intermediate && (f->dontcare || !f->precious))
{
int status;
if (just_print_flag)
if (f->update_status == -1)
/* If nothing would have created this file yet,
don't print an "rm" command for it. */
continue;
else if (just_print_flag)
status = 0;
else
{
@@ -491,6 +498,10 @@ print_file (f)
puts ("# Successfully updated.");
break;
case 1:
assert (question_flag);
puts ("# Needs to be updated (-q is set).");
break;
case 2:
puts ("# Failed to be updated.");
break;
default:

View File

@@ -1,5 +1,5 @@
/* Variable function expansion for GNU Make.
Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
Copyright (C) 1988, 89, 91, 92, 93, 94, 95 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -24,6 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef __MSDOS__
#include <process.h>
#include <fcntl.h>
#endif
static char *string_glob ();

View File

@@ -210,6 +210,10 @@ extern int errno;
#define LOAD_AVE_TYPE long
#endif
#ifdef _AIX
#define LOAD_AVE_TYPE long
#endif
#endif /* No LOAD_AVE_TYPE. */
#ifdef OSF_ALPHA
@@ -254,6 +258,10 @@ extern int errno;
#define FSCALE 100.0
#endif
#ifdef _AIX
#define FSCALE 65536.0
#endif
#endif /* Not FSCALE. */
#if !defined (LDAV_CVT) && defined (FSCALE)
@@ -315,6 +323,10 @@ extern int errno;
#define NLIST_STRUCT
#endif
#ifdef _AIX
#define NLIST_STRUCT
#endif
#endif /* defined (NLIST_STRUCT) */
@@ -340,7 +352,7 @@ extern int errno;
#define LDAV_SYMBOL "_Loadavg"
#endif
#if !defined(LDAV_SYMBOL) && ((defined(hpux) && !defined(hp9000s300)) || defined(_SEQUENT_) || defined(SVR4) || defined(ISC) || defined(sgi) || (defined (ardent) && defined (titan)))
#if !defined(LDAV_SYMBOL) && ((defined(hpux) && !defined(hp9000s300)) || defined(_SEQUENT_) || defined(SVR4) || defined(ISC) || defined(sgi) || (defined (ardent) && defined (titan)) || defined (_AIX))
#define LDAV_SYMBOL "avenrun"
#endif
@@ -790,23 +802,29 @@ getloadavg (loadavg, nelem)
#endif /* NLIST_STRUCT */
#ifndef SUNOS_5
if (nlist (KERNEL_FILE, nl) >= 0)
/* Omit "&& nl[0].n_type != 0 " -- it breaks on Sun386i. */
{
#ifdef FIXUP_KERNEL_SYMBOL_ADDR
FIXUP_KERNEL_SYMBOL_ADDR (nl);
if (
#ifndef _AIX
nlist (KERNEL_FILE, nl)
#else /* _AIX */
knlist (nl, 1, sizeof (nl[0]))
#endif
offset = nl[0].n_value;
}
#endif /* !SUNOS_5 */
#else /* sgi */
int ldav_off;
>= 0)
/* Omit "&& nl[0].n_type != 0 " -- it breaks on Sun386i. */
{
#ifdef FIXUP_KERNEL_SYMBOL_ADDR
FIXUP_KERNEL_SYMBOL_ADDR (nl);
#endif
offset = nl[0].n_value;
}
#endif /* !SUNOS_5 */
#else /* sgi */
int ldav_off;
ldav_off = sysmp (MP_KERNADDR, MPKA_AVENRUN);
if (ldav_off != -1)
offset = (long) ldav_off & 0x7fffffff;
ldav_off = sysmp (MP_KERNADDR, MPKA_AVENRUN);
if (ldav_off != -1)
offset = (long) ldav_off & 0x7fffffff;
#endif /* sgi */
}
}
/* Make sure we have /dev/kmem open. */
if (!getloadavg_initialized)

View File

@@ -1,3 +1,15 @@
Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob.c (S_ISDIR): Define if undefined.
Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob.c (glob): If GLOB_MARK set, stat names to find
directories and append slashes to them in final pass before
sorting.
(glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
slash; never append it here.
Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/configure.bat: Fixes from DJ.
@@ -43,273 +55,3 @@ Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/configure.in: Add AC_CONST check.
Wed Dec 7 14:05:12 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/Makefile.in (realclean): Remove config.status.
* posix/glob/Makefile.in (DEFS): New variable, set from @DEFS@.
(CPPFLAGS): Remove @DEFS@ from here.
(.c.o): Use $(DEFS).
Tue Dec 6 19:04:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/Makefile.in (CPPFLAGS): Include @DEFS@.
Mon Dec 5 12:05:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/configure.in: Add AC_PROG_CC.
Mon Nov 7 00:38:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/configure.in: Converted to Autoconf v2.
* posix/glob.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H
instead of DIRENT, SYSDIR, NDIR.
* posix/glob/Makefile.in (CC): New variable, set from @CC@.
(CPPFLAGS): Set from @CPPFLAGS@, not @DEFS@.
Sun Oct 09 01:19:38 1994 Jim Meyering (meyering@comco.com)
* posix/fnmatch.c: Remove CONFIG_BROKETS conditional.
Sun Oct 2 18:35:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob.h (__P): Change arg name to `protos', for congruence
with 4.4 BSD.
* posix/fnmatch.h (__P): Likewise.
Tue Sep 6 19:06:00 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
* posix/glob.c (prefix_array, glob): Avoid const on initialized
variables. Some compiler generates bad code.
Mon Jul 25 17:17:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/configure.bat: New file.
* posix/Makefile (glob.tar): Add glob/configure.bat.
Tue Dec 14 13:08:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/fnmatch.h: #undef FNM_PATHNAME, FNM_NOESCAPE, and
FNM_PERIOD before defining them.
Mon Oct 18 04:22:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob/configure.in: Use AC_HAVE_HEADERS instead of
AC_MEMORY_H and AC_UNISTD_H; omit AC_USG (not needed).
Sun Oct 10 14:31:35 1993 Jim Meyering (meyering@comco.com)
* posix/fnmatch.c [CONFIG_BROKETS]: Include <config.h> only under
this condition, else "config.h".
Wed May 12 16:24:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.c: Move include <unistd.h> before dir includes.
[HAVE_UNISTD_H] [! POSIX] [_POSIX_SOURCE]: Define POSIX.
Thu Apr 22 17:40:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob/Makefile.in (.c.o): Put $(CFLAGS) last.
(glob.o): Depend on glob.c.
(fnmatch.o): Depend on fnmatch.c.
Fri Apr 16 12:24:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c, posix/fnmatch.c: Surround code with
#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
Wed Apr 14 12:49:10 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [USG, NeXT]: Don't test these.
[HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
[HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
[! ANSI_STRING]: Put decls of bcopy and #define of memcpy et al here.
* posix/fnmatch.c [HAVE_CONFIG_H]: #include "config.h".
Mon Apr 12 16:34:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c: Rationalize directory header conditionals.
Sun Apr 11 18:53:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/fnmatch.h [__cplusplus || __STDC__]: Don't #define const.
Sun Mar 28 16:12:33 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/fnmatch.c (case '*'): Before final loop, fold C1, rather
than foling *P before it goes into C1. C might need folding instead.
Thu Mar 25 13:40:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/fnmatch.h [!_POSIX_C_SOURCE || ...]: Make this test
_GNU_SOURCE, not _BSD_SOURCE; these are our extensions, not theirs.
(FNM_CASEFOLD): New bit.
(__FNM_FLAGS): Removed macro.
* posix/fnmatch.c (fnmatch): Don't test for bogus flag bits; who cares?
(FOLD): New macro to casefold a char if FNM_CASEFOLD.
Use it to fold all chars before comparison.
Mon Mar 8 13:20:02 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob/Makefile.in (VPATH): Set this to @srcdir@.
(srcdir): Set this to $(VPATH).
* posix/glob.c (glob): In no matches with GLOB_NOCHECK set case,
add NULL terminator to PGLOB->gl_pathv.
(prefix_array): Renamed arg PREFIX to DIRNAME, local var PRELEN to
DIRLEN. If DIRNAME is just "/", don't prepend it, so we get
"/foo" instead of "//foo".
(glob): Move qsort call outside of the else clause of the
glob_pattern_p test; it should always be done.
Thu Jan 21 20:12:25 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.c: Put #includes of <glob.h> and <fnmatch.h> after
all system includes, in case one of them has conflicting defns of
FNM_* or GLOB_*, so we will redefine. #undef FNM_* and GLOB_*
before including our headers.
Tue Jan 19 16:16:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.c (my_realloc): Cast result of malloc/realloc to (char *).
Thu Jan 14 13:52:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob/Makefile.in (realclean): Remove Makefile.
Mon Jan 4 17:05:44 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob/Makefile.in (RANLIB): Define to @RANLIB@.
(RANLIB_TEST): Removed.
(libglob.a): Don't use it.
Mon Dec 28 15:50:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [HAVE_CONFIG_H]: Test this, not SHELL, to decide
whether or not we want to #include "config.h".
Wed Nov 18 13:42:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/fnmatch.h (FNM_LEADING_DIR): New flag.
* posix/fnmatch.c (fnmatch): Support it.
Sun Oct 11 16:58:36 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c (__glob_{open,read,close}dir_hook): New vars.
(glob_in_dir): Use them.
* posix/glob.h: Declare them.
Fri Sep 18 16:32:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob/Makefile.in (AR, ARFLAGS): Define.
(libglob.a): Use those vars instead of hardcoding.
Thu Aug 13 18:30:58 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c: Always #include <sys/types.h>.
[! USG]: Don't do it here.
[STDC_HEADERS]: Test this instead of __STDC__ for size_t.
[HAVE_STRCOLL]: Test this instead of ANSI_STRING for strcoll.
* posix/glob/Makefile.in (Makefile): Remove rule.
Tue Aug 11 15:01:50 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.c [_AIX]: Don't declare alloca.
Thu Jul 30 15:42:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob/Makefile.in (Makefile): Depend on config.status; invoke
it directly instead of using $(SHELL).
* posix/glob.c [! USG]: #include <sys/types.h> before <sys/dir.h>.
Sun Jul 26 17:03:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [_AIX]: #pragma alloca first thing.
[ANSI_STRING]: Remove #define's for index et al.
Thu Jul 9 21:27:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [STDC_STRINGS]: Don't test this.
[! ANSI_STRING]: Put memcpy, strrchr, memset defns here instead.
* posix/glob/Makefile.in (glob.o, fnmatch.o): / after $(srcdir).
Sat Jul 4 20:44:42 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob/Makefile.in (glob.o, fnmatch.o): Put $(srcdir) on deps.
Wed Jul 1 00:13:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [! ANSI_STRING]: #define strcoll to strcmp.
Remove extra decls of free, qsort, malloc, and realloc.
Wed Jun 24 19:09:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [DIRENT] (direct): Don't define to dirent.
[! DIRENT] (direct): Define to dirent.
Wed Jun 17 17:58:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.c (my_realloc): Test only __GNU_LIBRARY__. Can't trust
STDC_HEADERS.
Tue Jun 16 20:20:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob/Makefile: Moved to posix/glob/Makefile.in.
(VPATH, srcdir, CPPFLAGS): Define to be replaced by autoconf.
* posix/glob.c: Rearranged conditionals for use with autoconf.
Tue Jun 9 20:15:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob/Makefile: Fixed copyright notice.
(realclean): Don't remove ~ backup files.
Tue Jun 2 21:49:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.c (__ptr_t): Define.
Wed May 27 18:09:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/fnmatch.h (FNM_FILE_NAME): Alias for FNM_PATHNAME.
Fri May 22 01:52:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.h, posix/fnmatch.h: Use explicit cruft for C++.
Define __P and const for C++/ANSI vs old C ourselves, to avoid
dependence on <sys/cdefs.h>.
Sun May 17 15:50:00 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
* posix/glob.c (glob): Don't let us fall off the end without returning.
Thu May 14 01:45:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* posix/glob.h (GLOB_MAGCHAR): Check user feature-test macros,
rather than __USE_BSD, so we don't depend on features.h.
* posix/glob.h [__USE_BSD] (GLOB_MAGCHAR): Declare.
(glob_t): Added member `gl_flags'.
* posix/glob.c (glob, glob_in_dir): Set gl_flags member to FLAGS;
or in GLOB_MAGCHAR if any metachars are seen.
Thu Jan 16 18:43:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
* posix/glob.c [sgi]: No alloca.h, after all.
Fri Oct 18 15:27:58 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c [sgi]: Use <sys/dir.h>.
Tue Jul 23 14:11:29 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* posix/glob.c: Don't #include <stddef.h> #ifdef sun.
Is there anyone on the face of the planet other than me capable of
implementing the ANSI C standard to spec????
* posix/glob.c [DIRENT]: #include <sys/types.h> before <dirent.h>
#ifdef USG.

View File

@@ -26,6 +26,7 @@ Cambridge, MA 02139, USA. */
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Comment out all this code if we are using the GNU C Library, and are not
@@ -173,6 +174,19 @@ extern char *alloca ();
#endif
#ifndef __GNU_LIBRARY__
#define __lstat lstat
#ifndef HAVE_LSTAT
#define lstat stat
#endif
#ifdef STAT_MACROS_BROKEN
#undef S_ISDIR
#endif
#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif
#endif
#ifndef STDC_HEADERS
#undef size_t
#define size_t unsigned int
@@ -394,9 +408,21 @@ glob (pattern, flags, errfunc, pglob)
}
}
if (flags & GLOB_MARK)
{
/* Append slashes to directory names. glob_in_dir has already
allocated the extra character for us. */
int i;
struct stat st;
for (i = oldcount; i < pglob->gl_pathc; ++i)
if (__lstat (pglob->gl_pathv[i], &st) == 0 &&
S_ISDIR (st.st_mode))
strcat (pglob->gl_pathv[i], "/");
}
if (!(flags & GLOB_NOSORT))
/* Sort the vector. */
qsort ((__ptr_t) & pglob->gl_pathv[oldcount],
qsort ((__ptr_t) &pglob->gl_pathv[oldcount],
pglob->gl_pathc - oldcount,
sizeof (char *), collated_compare);
@@ -595,8 +621,6 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
if (new->name == NULL)
goto memory_error;
memcpy ((__ptr_t) new->name, name, len);
if (flags & GLOB_MARK)
new->name[len++] = '/';
new->name[len] = '\0';
new->next = names;
names = new;
@@ -611,12 +635,10 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
nfound = 1;
names = (struct globlink *) __alloca (sizeof (struct globlink));
names->next = NULL;
names->name = (char *) malloc (len + ((flags & GLOB_MARK) ? 1 : 0) + 1);
names->name = (char *) malloc (len + 1);
if (names->name == NULL)
goto memory_error;
memcpy (names->name, pattern, len);
if (flags & GLOB_MARK)
names->name[len++] = '/';
names->name[len] = '\0';
}

28
job.c
View File

@@ -945,23 +945,17 @@ new_job (file)
c->environment = 0;
/* Fetch the first command line to be run. */
if (! job_next_command (c))
{
/* There were no commands! */
free_child (c);
c->file->update_status = 0;
}
else
{
/* The job is now primed. Start it running. */
start_waiting_job (c);
job_next_command (c);
if (job_slots == 1)
/* Since there is only one job slot, make things run linearly.
Wait for the child to die, setting the state to `cs_finished'. */
while (file->command_state == cs_running)
reap_children (1, 0);
}
/* The job is now primed. Start it running.
(This will notice if there are in fact no commands.) */
start_waiting_job (c);
if (job_slots == 1)
/* Since there is only one job slot, make things run linearly.
Wait for the child to die, setting the state to `cs_finished'. */
while (file->command_state == cs_running)
reap_children (1, 0);
}
/* Move CHILD's pointers to the next command for it to execute.
@@ -971,7 +965,7 @@ static int
job_next_command (child)
struct child *child;
{
if (child->command_ptr == 0 || *child->command_ptr == '\0')
while (child->command_ptr == 0 || *child->command_ptr == '\0')
{
/* There are no more lines in the expansion of this line. */
if (child->command_line == child->file->cmds->ncommand_lines)

8
main.c
View File

@@ -23,6 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "variable.h"
#include "job.h"
#include "getopt.h"
#include <assert.h>
extern void print_variable_data_base ();
@@ -923,14 +924,17 @@ main (argc, argv, envp)
switch (update_goal_chain (read_makefiles, 1))
{
case 1:
default:
abort ();
#define BOGUS_UPDATE_STATUS 0
assert (BOGUS_UPDATE_STATUS);
break;
case -1:
/* Did nothing. */
break;
case 1:
case 2:
/* Failed to update. Figure out if we care. */
{
/* Nonzero if any makefile was successfully remade. */

View File

@@ -8,10 +8,11 @@
@c FSF publishers: format makebook.texi instead of using this file directly.
@set RCSID $Id$
@set EDITION 0.47
@set VERSION 3.72 Beta
@set UPDATED 1 November 1994
@set UPDATE-MONTH November 1994
@set EDITION 0.48
@set VERSION 3.73 Beta
@set UPDATED 4 April 1995
@set UPDATE-MONTH April 1995
@comment The ISBN number might need to change on next publication.
@set ISBN 1-882114-50-7
@c finalout
@@ -31,7 +32,8 @@ and issues the commands to recompile them.
This is Edition @value{EDITION}, last updated @value{UPDATED},
of @cite{The GNU Make Manual}, for @code{make}, Version @value{VERSION}.
Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software Foundation, Inc.
Copyright (C) 1988, '89, '90, '91, '92, '93, '94, '95
Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
@@ -66,7 +68,7 @@ by the Free Software Foundation.
@author Richard M. Stallman and Roland McGrath
@page
@vskip 0pt plus 1filll
Copyright @copyright{} 1988, '89, '90, '91, '92, '93, '94 Free Software Foundation, Inc.
Copyright @copyright{} 1988, '89, '90, '91, '92, '93, '94, '95 Free Software Foundation, Inc.
@sp 2
Published by the Free Software Foundation @*
675 Massachusetts Avenue, @*
@@ -3294,23 +3296,20 @@ definitions just as if they appeared on the command line.
@cindex @code{-C}, and recursion
@cindex @code{-f}, and recursion
@cindex @code{-I}, and recursion
@cindex @code{-o}, and recursion
@cindex @code{-W}, and recursion
@cindex @code{--directory}, and recursion
@cindex @code{--file}, and recursion
@cindex @code{--include-dir}, and recursion
@cindex @code{--old-file}, and recursion
@cindex @code{--assume-old}, and recursion
@cindex @code{--assume-new}, and recursion
@cindex @code{--new-file}, and recursion
@cindex recursion, and @code{-C}
@cindex recursion, and @code{-f}
@cindex recursion, and @code{-I}
@cindex recursion, and @code{-o}
@cindex recursion, and @code{-W}
The options @samp{-C}, @samp{-f}, @samp{-I}, @samp{-o}, and @samp{-W}
are not put into @code{MAKEFLAGS}; these options are not passed down.@refill
The options @samp{-C}, @samp{-f}, @samp{-o}, and @samp{-W} are not put
into @code{MAKEFLAGS}; these options are not passed down.@refill
@cindex @code{-j}, and recursion
@cindex @code{--jobs}, and recursion

View File

@@ -593,7 +593,9 @@ update_file_1 (file, depth)
/* Set FILE's `updated' flag and re-check its mtime and the mtime's of all
files listed in its `also_make' member. Under -t, this function also
touches FILE. */
touches FILE.
On return, FILE->update_status will no longer be -1 if it was. */
void
notice_finished_file (file)
@@ -668,6 +670,10 @@ notice_finished_file (file)
never be done because the target is already updated. */
(void) f_mtime (d->file, 0);
}
else if (file->update_status == -1)
/* Nothing was done for FILE, but it needed nothing done.
So mark it now as "succeeded". */
file->update_status = 0;
}
/* Check whether another file (whose mtime is THIS_MTIME)

View File

@@ -15,14 +15,22 @@ You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <sys/types.h> /* Some systems need this for <signal.h>. */
#include <signal.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
/* Some systems declare `sys_siglist in <unistd.h>; if
configure defined SYS_SIGLIST_DECLARED, it may expect
to find the declaration there. */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/* Some systems do not define NSIG in <signal.h>. */
#ifndef NSIG
#ifdef _NSIG

View File

@@ -1,4 +1,4 @@
char *version_string = "3.72.11";
char *version_string = "3.73.3";
/*
Local variables: