mirror of
https://github.com/mirror/make.git
synced 2026-09-01 20:28:09 +08:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c767901f6 | ||
|
|
c6dfff5f1b | ||
|
|
74540a1e91 | ||
|
|
5159db0aa4 | ||
|
|
e495d2380d | ||
|
|
1ed34a0118 | ||
|
|
e8f64b2c88 | ||
|
|
4867409da2 | ||
|
|
f801fc3521 | ||
|
|
b2c0446e71 | ||
|
|
8f98ceb724 | ||
|
|
dea9990bc8 | ||
|
|
e4c43aab3e | ||
|
|
e55ed78080 | ||
|
|
ca54a0b991 | ||
|
|
e25e2fb7f5 | ||
|
|
1a886b6359 | ||
|
|
b511712f25 | ||
|
|
30fcca501f |
14
GNUmakefile
14
GNUmakefile
@@ -45,6 +45,8 @@ include compatMakefile
|
|||||||
MAKE = $(MAKE_COMMAND) $(MAKEOVERRIDES)
|
MAKE = $(MAKE_COMMAND) $(MAKEOVERRIDES)
|
||||||
|
|
||||||
# Remove autoconf magic.
|
# Remove autoconf magic.
|
||||||
|
prefix = /usr/local
|
||||||
|
exec_prefix = $(prefix)
|
||||||
extras := $(filter-out getloadavg.o @%@,$(extras)) getloadavg.o
|
extras := $(filter-out getloadavg.o @%@,$(extras)) getloadavg.o
|
||||||
LOADLIBES := $(filter-out @%@,$(LOADLIBES))
|
LOADLIBES := $(filter-out @%@,$(LOADLIBES))
|
||||||
ALLOCA := $(filter-out @%@,$(ALLOCA))
|
ALLOCA := $(filter-out @%@,$(ALLOCA))
|
||||||
@@ -86,7 +88,7 @@ GLOB =
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
CPPFLAGS := $(CPPFLAGS) -Iglob
|
CPPFLAGS := $(filter-out @%@,$(CPPFLAGS)) -Iglob
|
||||||
|
|
||||||
endif # works-for-make
|
endif # works-for-make
|
||||||
endif # $(libc_dir)
|
endif # $(libc_dir)
|
||||||
@@ -96,9 +98,7 @@ endif # !no_libc
|
|||||||
$(ARCH)/%.o: %.c
|
$(ARCH)/%.o: %.c
|
||||||
$(COMPILE.c) -Iglob $< $(OUTPUT_OPTION)
|
$(COMPILE.c) -Iglob $< $(OUTPUT_OPTION)
|
||||||
$(ARCH)/glob/libglob.a: FORCE
|
$(ARCH)/glob/libglob.a: FORCE
|
||||||
$(MAKE) -C $(@D) $(@F) \
|
$(MAKE) -C $(@D) $(@F)
|
||||||
CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
|
|
||||||
CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H'
|
|
||||||
FORCE:
|
FORCE:
|
||||||
objs := $(addprefix $(ARCH)/,$(objs))
|
objs := $(addprefix $(ARCH)/,$(objs))
|
||||||
prog := $(ARCH)/make
|
prog := $(ARCH)/make
|
||||||
@@ -218,8 +218,8 @@ dist-flavor = alpha
|
|||||||
endif
|
endif
|
||||||
.PHONY: rcs-mark rcs-mark-alpha rcs-mark-beta
|
.PHONY: rcs-mark rcs-mark-alpha rcs-mark-beta
|
||||||
rcs-mark: rcs-mark-$(dist-flavor)
|
rcs-mark: rcs-mark-$(dist-flavor)
|
||||||
rcs-mark-alpha:;rcs -sAlpha -Nmake-$(version-): RCS/[!=]*,v
|
rcs-mark-alpha: RCS/[!=]*,v;rcs -sAlpha -Nmake-$(version-): $^
|
||||||
rcs-mark-beta:;rcs -sBeta -Nmake-$(version-): RCS/[!=]*,v
|
rcs-mark-beta: RCS/[!=]*,v;rcs -sBeta -Nmake-$(version-): $^
|
||||||
version- = $(subst .,-,$(version))
|
version- = $(subst .,-,$(version))
|
||||||
|
|
||||||
dist: local-inst
|
dist: local-inst
|
||||||
@@ -262,7 +262,7 @@ make-$(version).tar: README INSTALL COPYING ChangeLog NEWS \
|
|||||||
acconfig.h $(srcs) remote-*.c $(globfiles) \
|
acconfig.h $(srcs) remote-*.c $(globfiles) \
|
||||||
make.texinfo make-stds.texi \
|
make.texinfo make-stds.texi \
|
||||||
make.?? make.??s make.toc make.aux make.man texinfo.tex TAGS tags \
|
make.?? make.??s make.toc make.aux make.man texinfo.tex TAGS tags \
|
||||||
install.sh \
|
install-sh \
|
||||||
make.info make.info*
|
make.info make.info*
|
||||||
$(make-tar)
|
$(make-tar)
|
||||||
|
|
||||||
|
|||||||
@@ -9,3 +9,6 @@
|
|||||||
|
|
||||||
/* Define this if the C library defines the variable `_sys_siglist'. */
|
/* Define this if the C library defines the variable `_sys_siglist'. */
|
||||||
#undef HAVE__SYS_SIGLIST
|
#undef HAVE__SYS_SIGLIST
|
||||||
|
|
||||||
|
/* Define this if you have the `union wait' type in <sys/wait.h>. */
|
||||||
|
#undef HAVE_UNION_WAIT
|
||||||
|
|||||||
69
build.sh.in
Normal file
69
build.sh.in
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Shell script to build GNU Make in the absence of any `make' program.
|
||||||
|
|
||||||
|
# Copyright (C) 1993, 1994 Free Software Foundation, Inc.
|
||||||
|
# This file is part of GNU Make.
|
||||||
|
#
|
||||||
|
# GNU Make is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# GNU Make is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with GNU Make; see the file COPYING. If not, write to
|
||||||
|
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
# See Makefile.in for comments describing these variables.
|
||||||
|
|
||||||
|
srcdir='@srcdir@'
|
||||||
|
CC='@CC@'
|
||||||
|
CFLAGS='@CFLAGS@'
|
||||||
|
CPPFLAGS='@CPPFLAGS@'
|
||||||
|
LDFLAGS='@LDFLAGS@'
|
||||||
|
defines='@DEFS@ -DLIBDIR="${libdir}" -DINCLUDEDIR="${includedir}"'
|
||||||
|
ALLOCA='@ALLOCA@'
|
||||||
|
LOADLIBES='@LIBS@'
|
||||||
|
extras='@LIBOBJS@'
|
||||||
|
REMOTE='@REMOTE@'
|
||||||
|
|
||||||
|
# Common prefix for machine-independent installed files.
|
||||||
|
prefix=@prefix@
|
||||||
|
# Common prefix for machine-dependent installed files.
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
# Directory to find libraries in for `-lLIB'.
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
# Directory to search by default for included makefiles.
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
# Exit as soon as any command fails.
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# These are all the objects we need to link together.
|
||||||
|
objs="commands.o job.o dir.o file.o misc.o main.o read.o remake.o rule.o implicit.o default.o variable.o expand.o function.o vpath.o version.o ar.o arscan.o signame.o getopt.o getopt1.o glob/glob.o glob/fnmatch.o remote-${REMOTE}.o ${extras} ${ALLOCA}"
|
||||||
|
|
||||||
|
# Compile the source files into those objects.
|
||||||
|
for file in `echo ${objs} | sed 's/\.o/.c/g'`; do
|
||||||
|
echo compiling ${file}...
|
||||||
|
$CC $CPPFLAGS $CFLAGS $defines -c \
|
||||||
|
-I. -I${srcdir} -I${srcdir}/glob ${srcdir}/$file
|
||||||
|
done
|
||||||
|
|
||||||
|
# The object files were actually all put in the current directory.
|
||||||
|
# Remove the source directory names from the list.
|
||||||
|
srcobjs="$objs"
|
||||||
|
objs=
|
||||||
|
for obj in $srcobjs; do
|
||||||
|
objs="$objs `basename $obj`"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Link all the objects together.
|
||||||
|
echo linking make...
|
||||||
|
$CC $LDFLAGS $objs $LOADLIBES -o make.new
|
||||||
|
echo done
|
||||||
|
mv -f make.new make
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# NOTE: If you have no `make' program at all to process this makefile, run
|
# NOTE: If you have no `make' program at all to process this makefile, run
|
||||||
# `build.sh' instead.
|
# `build.sh' instead.
|
||||||
#
|
#
|
||||||
# Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
# Copyright (C) 1988, 89, 91, 92, 93, 94 Free Software Foundation, Inc.
|
||||||
# This file is part of GNU Make.
|
# This file is part of GNU Make.
|
||||||
#
|
#
|
||||||
# GNU Make is free software; you can redistribute it and/or modify
|
# GNU Make is free software; you can redistribute it and/or modify
|
||||||
@@ -30,11 +30,9 @@ srcdir = @srcdir@
|
|||||||
CC = @CC@
|
CC = @CC@
|
||||||
|
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
# How to invoke ranlib. This is only used by the `glob' subdirectory.
|
|
||||||
RANLIB = @RANLIB@
|
|
||||||
|
|
||||||
# Define these for your system as follows:
|
# Define these for your system as follows:
|
||||||
# -DNO_ARCHIVES To disable `ar' archive support.
|
# -DNO_ARCHIVES To disable `ar' archive support.
|
||||||
# -DNO_FLOAT To avoid using floating-point numbers.
|
# -DNO_FLOAT To avoid using floating-point numbers.
|
||||||
@@ -77,9 +75,9 @@ LOADLIBES = @LIBS@
|
|||||||
extras = @LIBOBJS@
|
extras = @LIBOBJS@
|
||||||
|
|
||||||
# Common prefix for machine-independent installed files.
|
# Common prefix for machine-independent installed files.
|
||||||
prefix = /usr/local
|
prefix = @prefix@
|
||||||
# Common prefix for machine-dependent installed files.
|
# Common prefix for machine-dependent installed files.
|
||||||
exec_prefix = $(prefix)
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
# Directory to install `make' in.
|
# Directory to install `make' in.
|
||||||
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
||||||
@@ -166,17 +164,14 @@ make: $(objs)
|
|||||||
# -I. is needed to find config.h in the build directory.
|
# -I. is needed to find config.h in the build directory.
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
|
$(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
|
||||||
$(CFLAGS) $< $(OUTPUT_OPTION)
|
$(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
|
||||||
|
|
||||||
# For some losing Unix makes.
|
# For some losing Unix makes.
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
MAKE = make
|
MAKE = make
|
||||||
|
|
||||||
glob/libglob.a: FORCE config.h
|
glob/libglob.a: FORCE config.h
|
||||||
cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
|
cd glob; $(MAKE) libglob.a
|
||||||
CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
|
|
||||||
RANLIB='$(RANLIB)' \
|
|
||||||
libglob.a
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
tagsrcs = $(srcs) $(srcdir)/remote-*.c
|
tagsrcs = $(srcs) $(srcdir)/remote-*.c
|
||||||
@@ -250,6 +245,7 @@ clean: glob-clean
|
|||||||
-rm -f make loadavg *.o core make.info* make.dvi
|
-rm -f make loadavg *.o core make.info* make.dvi
|
||||||
distclean: clean glob-realclean
|
distclean: clean glob-realclean
|
||||||
-rm -f Makefile config.h config.status build.sh stamp-config
|
-rm -f Makefile config.h config.status build.sh stamp-config
|
||||||
|
-rm -f config.log config.cache
|
||||||
-rm -f TAGS tags
|
-rm -f TAGS tags
|
||||||
-rm -f make.?? make.??s make.log make.toc make.*aux
|
-rm -f make.?? make.??s make.log make.toc make.*aux
|
||||||
-rm -f loadavg.c
|
-rm -f loadavg.c
|
||||||
|
|||||||
94
configure.in
94
configure.in
@@ -1,54 +1,66 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_REVISION([$Id$])
|
AC_REVISION([$Id$])
|
||||||
AC_INIT(vpath.c) dnl A distinctive file to look for in srcdir.
|
AC_PREREQ(2.1)dnl dnl Minimum Autoconf version required.
|
||||||
|
AC_INIT(vpath.c)dnl dnl A distinctive file to look for in srcdir.
|
||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
AC_CONFIG_SUBDIRS(glob) dnl Run configure in glob subdirectory.
|
||||||
|
|
||||||
# We want these before the checks, so the checks can modify their values.
|
# We want these before the checks, so the checks can modify their values.
|
||||||
test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
|
test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
|
||||||
test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
|
test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
|
||||||
|
|
||||||
AC_SET_MAKE
|
AC_PROG_MAKE_SET
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_RANLIB
|
|
||||||
AC_PROG_CPP dnl Later checks need this.
|
AC_PROG_CPP dnl Later checks need this.
|
||||||
AC_AIX
|
AC_AIX
|
||||||
AC_ISC_POSIX
|
AC_ISC_POSIX
|
||||||
AC_MINIX
|
AC_MINIX
|
||||||
AC_STDC_HEADERS
|
AC_HEADER_STDC
|
||||||
AC_DIR_HEADER
|
AC_HEADER_DIRENT
|
||||||
AC_UID_T dnl Also does gid_t.
|
AC_TYPE_UID_T dnl Also does gid_t.
|
||||||
AC_GETGROUPS_T
|
AC_TYPE_GETGROUPS
|
||||||
AC_PID_T
|
AC_TYPE_PID_T
|
||||||
AC_RETSIGTYPE
|
AC_TYPE_SIGNAL
|
||||||
AC_HAVE_HEADERS(unistd.h limits.h sys/param.h fcntl.h string.h memory.h \
|
AC_CHECK_HEADERS(unistd.h limits.h sys/param.h fcntl.h string.h memory.h \
|
||||||
sys/timeb.h)
|
sys/timeb.h)
|
||||||
AC_MINUS_C_MINUS_O
|
AC_PROG_CC_C_O
|
||||||
AC_CONST dnl getopt needs this.
|
AC_C_CONST dnl getopt needs this.
|
||||||
AC_STAT_MACROS_BROKEN
|
AC_HEADER_STAT
|
||||||
|
|
||||||
AC_SUBST(LIBOBJS)
|
AC_SUBST(LIBOBJS)
|
||||||
|
|
||||||
AC_HAVE_FUNCS(getdtablesize psignal \
|
AC_DEFUN(AC_CHECK_SYMBOL, [dnl
|
||||||
dup2 getcwd sigsetmask getgroups setlinebuf \
|
AC_MSG_CHECKING(for $1)
|
||||||
seteuid setegid setreuid setregid strerror)
|
AC_CACHE_VAL(ac_cv_check_symbol_$1, [dnl
|
||||||
AC_COMPILE_CHECK(sys_siglist, ,
|
AC_TRY_LINK(, [extern char *sys_siglist[]; puts(*sys_siglist);],
|
||||||
[extern char *sys_siglist[]; puts(*sys_siglist);],
|
ac_cv_check_symbol_$1=yes, ac_cv_check_symbol_$1=no)])
|
||||||
AC_DEFINE(HAVE_SYS_SIGLIST))
|
if test "$ac_cv_check_symbol_$1" = yes; then
|
||||||
AC_COMPILE_CHECK(_sys_siglist, ,
|
changequote(,)dnl
|
||||||
[extern char *_sys_siglist[]; puts(*_sys_siglist);],
|
ac_tr_symbol=`echo $1 | tr '[a-z]' '[A-Z]'`
|
||||||
AC_DEFINE(HAVE__SYS_SIGLIST))
|
changequote([,])dnl
|
||||||
AC_ALLOCA
|
AC_DEFINE_UNQUOTED(HAVE_${ac_tr_symbol})
|
||||||
AC_VFORK
|
fi
|
||||||
AC_SETVBUF_REVERSED
|
AC_MSG_RESULT($ac_cv_check_symbol_$1)])dnl
|
||||||
AC_GETLOADAVG
|
|
||||||
AC_STRCOLL
|
|
||||||
|
|
||||||
dnl Check out the wait reality.
|
AC_CHECK_FUNCS(getdtablesize psignal \
|
||||||
AC_HAVE_HEADERS(sys/wait.h) AC_HAVE_FUNCS(waitpid wait3)
|
dup2 getcwd sigsetmask getgroups setlinebuf \
|
||||||
AC_COMPILE_CHECK(union wait, [#include <sys/types.h>
|
seteuid setegid setreuid setregid strerror)
|
||||||
|
AC_CHECK_SYMBOL(sys_siglist)
|
||||||
|
AC_CHECK_SYMBOL(_sys_siglist)
|
||||||
|
AC_FUNC_ALLOCA
|
||||||
|
AC_FUNC_VFORK
|
||||||
|
AC_FUNC_SETVBUF_REVERSED
|
||||||
|
AC_FUNC_GETLOADAVG
|
||||||
|
AC_FUNC_STRCOLL
|
||||||
|
|
||||||
|
# Check out the wait reality.
|
||||||
|
AC_CHECK_HEADERS(sys/wait.h) AC_CHECK_FUNCS(waitpid wait3)
|
||||||
|
AC_MSG_CHECKING(for union wait)
|
||||||
|
AC_CACHE_VAL(make_cv_union_wait, [dnl
|
||||||
|
AC_TRY_LINK([#include <sys/types.h>
|
||||||
#include <sys/wait.h>],
|
#include <sys/wait.h>],
|
||||||
[union wait status; int pid; pid = wait (&status);
|
[union wait status; int pid; pid = wait (&status);
|
||||||
#ifdef WEXITSTATUS
|
#ifdef WEXITSTATUS
|
||||||
/* Some POSIXoid systems have both the new-style macros and the old
|
/* Some POSIXoid systems have both the new-style macros and the old
|
||||||
union wait type, and they do not work together. If union wait
|
union wait type, and they do not work together. If union wait
|
||||||
@@ -60,19 +72,21 @@ if (WEXITSTATUS (status) != 0) pid = -1;
|
|||||||
pid = waitpid (-1, &status, 0);
|
pid = waitpid (-1, &status, 0);
|
||||||
#endif
|
#endif
|
||||||
],
|
],
|
||||||
AC_DEFINE(HAVE_UNION_WAIT))
|
[make_cv_union_wait=yes], [make_cv_union_wait=no])])
|
||||||
|
if test "$make_cv_union_wait" = yes; then
|
||||||
|
AC_DEFINE(HAVE_UNION_WAIT)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($make_cv_union_wait)
|
||||||
|
|
||||||
AC_SYS_SIGLIST_DECLARED
|
AC_DECL_SYS_SIGLIST
|
||||||
|
|
||||||
# The presence of the following is not meant to imply
|
# The presence of the following is not meant to imply
|
||||||
# that make necessarily works on those systems.
|
# that make necessarily works on those systems.
|
||||||
AC_DYNIX_SEQ
|
AC_CHECK_LIB(sun, getpwnam)
|
||||||
AC_XENIX_DIR
|
|
||||||
AC_IRIX_SUN
|
|
||||||
|
|
||||||
AC_SUBST(REMOTE) REMOTE=stub
|
AC_SUBST(REMOTE) REMOTE=stub
|
||||||
AC_WITH(customs, [REMOTE=cstms
|
AC_ARG_WITH(customs, [export jobs with the Customs daemon (NOT SUPPORTED)],
|
||||||
LIBS="$LIBS libcustoms.a"])
|
[REMOTE=cstms LIBS="$LIBS libcustoms.a"])
|
||||||
|
|
||||||
echo checking for location of SCCS get command
|
echo checking for location of SCCS get command
|
||||||
if test -f /usr/sccs/get; then
|
if test -f /usr/sccs/get; then
|
||||||
@@ -94,7 +108,7 @@ if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
|
|||||||
fi
|
fi
|
||||||
rm -f s.conftest conftoast
|
rm -f s.conftest conftoast
|
||||||
|
|
||||||
AC_OUTPUT(Makefile build.sh glob/Makefile, [
|
AC_OUTPUT(Makefile build.sh, [
|
||||||
# Makefile uses this timestamp file to know when to remake Makefile,
|
# Makefile uses this timestamp file to know when to remake Makefile,
|
||||||
# build.sh, and glob/Makefile.
|
# build.sh, and glob/Makefile.
|
||||||
touch stamp-config])
|
touch stamp-config])
|
||||||
|
|||||||
18
dir.c
18
dir.c
@@ -18,26 +18,26 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
#include "make.h"
|
#include "make.h"
|
||||||
|
|
||||||
#if defined (POSIX) || defined (DIRENT) || defined (__GNU_LIBRARY__)
|
#if defined (POSIX) || defined (HAVE_DIRENT_H) || defined (__GNU_LIBRARY__)
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#ifndef __GNU_LIBRARY__
|
#ifndef __GNU_LIBRARY__
|
||||||
#define D_NAMLEN(d) strlen((d)->d_name)
|
#define D_NAMLEN(d) strlen((d)->d_name)
|
||||||
#else /* GNU C library. */
|
#else /* GNU C library. */
|
||||||
#define D_NAMLEN(d) ((d)->d_namlen)
|
#define D_NAMLEN(d) ((d)->d_namlen)
|
||||||
#endif /* Not GNU C library. */
|
#endif /* Not GNU C library. */
|
||||||
#else /* Not POSIX or DIRENT. */
|
#else /* Not POSIX or HAVE_DIRENT_H. */
|
||||||
#define direct dirent
|
#define direct dirent
|
||||||
#define D_NAMLEN(d) ((d)->d_namlen)
|
#define D_NAMLEN(d) ((d)->d_namlen)
|
||||||
#ifdef SYSNDIR
|
#ifdef HAVE_SYS_NDIR_H
|
||||||
#include <sys/ndir.h>
|
#include <sys/ndir.h>
|
||||||
#endif /* SYSNDIR */
|
#endif /* HAVE_SYS_NDIR_H */
|
||||||
#ifdef SYSDIR
|
#ifdef HAVE_SYS_DIR_H
|
||||||
#include <sys/dir.h>
|
#include <sys/dir.h>
|
||||||
#endif /* SYSDIR */
|
#endif /* HAVE_SYS_DIR_H */
|
||||||
#ifdef NDIR
|
#ifdef HAVE_NDIR_H
|
||||||
#include <ndir.h>
|
#include <ndir.h>
|
||||||
#endif /* NDIR */
|
#endif /* HAVE_NDIR_H */
|
||||||
#endif /* POSIX or DIRENT or __GNU_LIBRARY__. */
|
#endif /* POSIX or HAVE_DIRENT_H or __GNU_LIBRARY__. */
|
||||||
|
|
||||||
#if defined (POSIX) && !defined (__GNU_LIBRARY__)
|
#if defined (POSIX) && !defined (__GNU_LIBRARY__)
|
||||||
/* Posix does not require that the d_ino field be present, and some
|
/* Posix does not require that the d_ino field be present, and some
|
||||||
|
|||||||
5
main.c
5
main.c
@@ -1781,6 +1781,11 @@ define_makeflags (all, makefile)
|
|||||||
p += sizeof ref - 1;
|
p += sizeof ref - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (p == &flagstring[1])
|
||||||
|
{
|
||||||
|
words = 0;
|
||||||
|
--p;
|
||||||
|
}
|
||||||
else if (p[-1] == '-')
|
else if (p[-1] == '-')
|
||||||
/* Kill the final space and dash. */
|
/* Kill the final space and dash. */
|
||||||
p -= 2;
|
p -= 2;
|
||||||
|
|||||||
@@ -401,7 +401,9 @@ installed.
|
|||||||
|
|
||||||
Installation directories should always be named by variables, so it is
|
Installation directories should always be named by variables, so it is
|
||||||
easy to install in a nonstandard place. The standard names for these
|
easy to install in a nonstandard place. The standard names for these
|
||||||
variables are as follows.
|
variables are described below. They are based on a standard filesystem
|
||||||
|
layout; variants of it are used in SVR4, 4.4BSD, Linux, Ultrix v4, and
|
||||||
|
other modern operating systems.
|
||||||
|
|
||||||
These two variables set the root for the installation. All the other
|
These two variables set the root for the installation. All the other
|
||||||
installation directories should be subdirectories of one of these two,
|
installation directories should be subdirectories of one of these two,
|
||||||
@@ -411,7 +413,8 @@ and nothing should be directly installed into these two directories.
|
|||||||
@item prefix
|
@item prefix
|
||||||
A prefix used in constructing the default values of the variables listed
|
A prefix used in constructing the default values of the variables listed
|
||||||
below. The default value of @code{prefix} should be @file{/usr/local}
|
below. The default value of @code{prefix} should be @file{/usr/local}
|
||||||
(at least for now).
|
When building the complete GNU system, the prefix will be empty and
|
||||||
|
@file{/usr} will be a symbolic link to @file{/}.
|
||||||
|
|
||||||
@item exec_prefix
|
@item exec_prefix
|
||||||
A prefix used in constructing the default values of some of the
|
A prefix used in constructing the default values of some of the
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
@c FSF publishers: format makebook.texi instead of using this file directly.
|
@c FSF publishers: format makebook.texi instead of using this file directly.
|
||||||
|
|
||||||
@set RCSID $Id$
|
@set RCSID $Id$
|
||||||
@set EDITION 0.47 DRAFT
|
@set EDITION 0.47
|
||||||
@set VERSION 3.72 Beta
|
@set VERSION 3.72 Beta
|
||||||
@set UPDATED 1 November 1994
|
@set UPDATED 1 November 1994
|
||||||
@set UPDATE-MONTH November 1994
|
@set UPDATE-MONTH November 1994
|
||||||
|
|||||||
2
remake.c
2
remake.c
@@ -639,7 +639,7 @@ notice_finished_file (file)
|
|||||||
f->last_mtime = file->last_mtime;
|
f->last_mtime = file->last_mtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file->update_status != -1)
|
if (ran && file->update_status != -1)
|
||||||
/* We actually tried to update FILE, which has
|
/* We actually tried to update FILE, which has
|
||||||
updated its also_make's as well (if it worked).
|
updated its also_make's as well (if it worked).
|
||||||
If it didn't work, it wouldn't work again for them.
|
If it didn't work, it wouldn't work again for them.
|
||||||
|
|||||||
Reference in New Issue
Block a user