summaryrefslogtreecommitdiff
path: root/misc.c
AgeCommit message (Collapse)AuthorFilesLines
2005-10-24Make second expansion optional (partial implementation).Paul Smith1-1/+16
I decided this feature was too impacting to make the permanent default behavior. This set of changes makes the default behavior of make the old behavior (no second expansion). If you want second expansion, you must define the .SECONDEXPANSION: special target before the first target that needs it. This set of changes ONLY fixes explicit and static pattern rules to work like this. Implicit rules still have second expansion enabled all the time: I'll work on that next. Note that there is still a backward-incompatibility: now to get the old SysV behavior using $$@ etc. in the prerequisites list you need to set .SECONDEXPANSION: as well.
2005-06-25Fix Savannah bug #1454: skip over semicolons (and comments) inside variablePaul Smith1-16/+0
references in target definition lines.
2005-06-12Fix Savannah bug # 1328: if stdout is redirected to a full filesystem, wePaul Smith1-0/+47
check for this and exit with an error. The closeout.c version from gnulib pulls in too much other stuff, and gnulib requires an ANSI C 89 compliant compiler, while GNU make (so far) still wants to work on K&R.
2005-02-28* New feature: -L optionPaul Smith1-2/+2
* New function: $(info ...) * Disallow $(eval ...) to create prereq relationships inside command scripts (caused core dumps) * Try to allow more tests to succeed in Windows/DOS by sanitizing CRLF and \ * Various bug fixes and code cleanups (see the ChangeLog entry)
2005-02-27Implementation of the .DEFAULT_TARGET special variable.Boris Kolpackov1-9/+9
2005-02-27Implementation of the second expansion in explicitBoris Kolpackov1-0/+21
rules, static pattern rules and implicit rules.
2004-09-21Remove sindex() and replace with strstr().Paul Smith1-28/+0
Windows: allow users to set SHELL to cmd.exe and have it behave as if no UNIX shell were found.
2004-03-06Don't use __STDC__; some compilers don't set it properly.Paul Smith1-3/+3
Use autoconf's test to set HAVE_ANSI_COMPILER and check that instead.
2004-03-04Updates to automate generation of GNU upload artifacts.Paul Smith1-3/+3
Fix a problem compiling on old, pre-ANSI systems. getloadavg test is still broken, but make builds. Document a breakage on SunOS 4.x systems.
2004-02-23Numerous fixes: patches for OS/2; core for -f ''; makefile updates.Paul Smith1-10/+9
2004-01-07Fix order-only prerequisites for pattern rules. (Savannah patch #2349).Paul Smith1-1/+4
Add a regression test for this. Older libraries don't allow *alloc(0), so make sure we don't ever do that.
2003-01-30Portability fix for glob.h building in FreeBSD ports system.Paul Smith1-32/+0
Implement a fix for bug # 2169: too many OSs, even major OSs like Solaris, don't properly implement SA_RESTART: important system calls like stat() can still fail when SA_RESTART is set. So, forget the BROKEN_RESTART config check and get rid of atomic_stat() and atomic_readdir(), and implement permanent wrappers for EINTR checking on various system calls (stat(), fstat(), opendir(), and readdir() so far).
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-60/+29
enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem.
2002-09-12Fixups for the release. One bug fix, some automake complaint fixes,Paul Smith1-1/+1
and a function return type fix for older systems.
2002-09-11Fix HAVE_BROKEN_RESTART logic.Paul Smith1-2/+2
Fix hash.h typos (only noticed when using Windows). Update .cvsignore files.
2002-09-10Add support for broken SA_RESTART on PTX.Paul Smith1-0/+35
Fix bug #103: allow ifdef, export, and unexport to expand their arguments.
2002-08-08Change the version.Paul Smith1-2/+2
Update to require new gettext. Change hash.c to by K&R. Redo some strings to make i18n simpler.
2002-07-11Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith1-2/+3
GNU make. Also he provides some other performance fixups after doing some profiling of make on large makefiles. Modify the test suite to allow the use of Valgrind to find memory problems.
2002-07-08Major updates in preparation for 3.80.Paul Smith1-6/+4
New version of the manual, put into the doc subdir. Enhancements: $(eval ...) and $(value ...) functions, various bug fixes, etc. See the ChangeLog. More to come.
2002-05-10Fix Debian bug #144306: pass target-specific variables into the environmentPaul Smith1-7/+7
properly. Fix configure: allow cross-compilation; fix getloadavg (still needs _lots_ of work!) Let $(call ...) functions to be self-referencing. Lets us do transitive closures, for example.
2001-08-19Installed the da.po (Danish) translation file.Paul Smith1-5/+5
Fixed some translation string issues.
2000-06-20* More updates and fixes.Paul Smith1-0/+1
2000-06-07* Lots of bug fixes and cleanup; new i18n files, etc.Paul Smith1-4/+5
1999-11-22* Add new debugging output level selection feature.Paul Smith1-3/+3
1999-10-15* Fix PR/1394.Paul Smith1-1/+1
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
1999-07-28* Add gettext macros to start i18n support.Paul Smith1-7/+7
1999-07-21* Add configure option to enable dmalloc library.Paul Smith1-14/+30
* Various code cleanups.
1999-03-19* Add strneq() (streq only n chars) macroPaul Smith1-1/+1
* fix return type of xstrdup.
1999-03-05* Define and use xstrdup() instead of strdup().Paul Smith1-0/+23
1999-03-05* Update FSF address info in copyright notices.Paul Smith1-1/+2
* Update maintainers build process; remove GNUmakefile. Require builders to run automake && autoreconf by hand. * Use AC_SUBST_FILE to get the maintMakefile included, rather than GNU make's include directive, which conflicts with automake 1.4's include directive.
1998-10-03Checkpoint changes. Bug fixes, mostly.Paul Smith1-58/+101
1998-07-30GNU make release 3.77.Paul Smith1-3/+7
1997-08-27Updates for GNU make 3.75.92.Paul Smith1-1/+1
1997-04-07Changes for make 3.75.1Paul Smith1-1/+1
1996-05-22Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>Roland McGrath1-0/+31
* dir.c: WIN32 does not support inode. For now, fully qualified pathname along with st_mtime will be keys for files. Fixed problem where vpath can be confused when files are added to a directory after the directory has already been read in. The code now attempts to reread the directory if it discovers that the datestamp on the directory has changed since it was cached by make. This problem only seems to occur on WIN32 right now so it is lumped under port #ifdef WIN32. * function.c: WIN32: call subproc library (CreateProcess()) instead of fork/exec. * job.c: WIN32: Added the code to do fork/exec/waitpid style processing on WIN32 systems via calls to subproc library. * main.c: WIN32: Several things added here. First, there is code for dealing with PATH and SHELL defaults. Make tries to figure out if the user has %PATH% set in the environment and sets it to %Path% if it is not set already. Make also looks to see if sh.exe is anywhere to be found. Code path through job.c will change based on existence of a working Bourne shell. The checking for default shell is done twice: once before makefiles are read in and again after. Fall back to MSDOS style execution mode if no sh.exe is found. Also added some debug support that allows user to pause make with -D switch and attach a debugger. This is especially useful for debugging recursive calls to make where problems appear only in the sub-make. * make.h: WIN32: A few macros and header files for WIN32 support. * misc.c: WIN32: Added a function end_of_token_w32() to assist in parsing code in read.c. * read.c: WIN32: Fixes similar to MSDOS which allow colon to appear in filenames. Use of colon in filenames would otherwise confuse make. * remake.c: WIN32: Added include of io.h to eliminate compiler warnings. Added some code to default LIBDIR if it is not set on WIN32. * variable.c: WIN32: Added support for detecting Path/PATH and converting them to semicolon separated lists for make's internal use. New function sync_Path_environment() which is called in job.c and function.c before creating a new process. Caller must set Path in environment since we don't have fork() to do this for us. * vpath.c: WIN32: Added detection for filenames containing forward or backward slashes. * NMakefile: WIN32: Visual C compatible makefile for use with nmake. Use this to build GNU make the first time on Windows NT or Windows 95. * README.WIN32: WIN32: Contains some helpful notes. * build_w32.bat: WIN32: If you don't like nmake, use this the first time you build GNU make on Windows NT or Windows 95. * config.h.WIN32: WIN32 version of config.h * subproc.bat: WIN32: A bat file used to build the subproc library from the top-level NMakefile. Needed because WIndows 95 (nmake) doesn't allow you to cd in a make rule. * w32/include/dirent.h * w32/compat/dirent.c: WIN32: opendir, readdir, closedir, etc. * w32/include/pathstuff.h: WIN32: used by files needed functions defined in pathstuff.c (prototypes). * w32/include/sub_proc.h: WIN32: prototypes for subproc.lib functions. * w32/include/w32err.h: WIN32: prototypes for w32err.c. * w32/pathstuff.c: WIN32: File and Path/Path conversion functions. * w32/subproc/build.bat: WIN32: build script for subproc library if you don't wish to use nmake. * w32/subproc/NMakefile: WIN32: Visual C compatible makefile for use with nmake. Used to build subproc library. * w32/subproc/misc.c: WIN32: subproc library support code * w32/subproc/proc.h: WIN32: subproc library support code * w32/subproc/sub_proc.c: WIN32: subproc library source code * w32/subproc/w32err.c: WIN32: subproc library support code
1996-03-20Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1-0/+4
Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>. * make.h (PARAMS): New macro. * config.h-vms: New file. * makefile.com: New file. * makefile.vms: New file. * readme.vms: New file. * vmsdir.h: New file. * vmsfunctions.c: New file. * vmsify.c: New file. * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr. * ar.c: Added prototypes and changes for VMS. * commands.c: Likewise. * commands.h: Likewise. * default.c: Likewise. * dep.h: Likewise. * dir.c: Likewise. * expand.c: Likewise. * file.c: Likewise. * function.c: Likewise. * implicit.c: Likewise. * job.c: Likewise. * job.h: Likewise. * main.c: Likewise. * make.h: Likewise. * misc.c: Likewise. * read.c: Likewise. * remake.c: Likewise. * remote-stub.c: Likewise. * rule.c: Likewise. * rule.h: Likewise. * variable.c: Likewise. * variable.h: Likewise. * vpath.c: Likewise. * compatMakefile (srcs): Rename file.h to filedef.h.
1995-12-12(collapse_continuations): Fix skipping of trailing \s so it can neverRoland McGrath1-3/+2
dereference before the beginning of the array.
1995-12-12(safe_stat): Function removed.Roland McGrath1-20/+0
1995-11-26(message): Take new arg PREFIX. Print "make: " only if nonzero.Roland McGrath1-7/+25
1995-03-10Changed find_char_unquote callers here too.Roland McGrath1-1/+1
1995-02-22(strerror): Fix swapped args in sprintf.Roland McGrath1-2/+2
1994-07-04(safe_stat): New function, EINTR-safe wrapper around stat.Roland McGrath1-0/+20
1994-05-23[GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs around #undefs ofRoland McGrath1-4/+0
HAVE_SETREUID and HAVE_SETREGID.
1994-05-21[GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID] and [HAVE_SETGID].3.71Roland McGrath1-2/+2
Every system has those, and configure doesn't check for them.
1994-05-17[GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID and HAVE_SETEGID.Roland McGrath1-1/+13
1994-04-21(remove_comments): Use find_char_unquote.Roland McGrath1-28/+5
1994-04-21[HAVE_SETEUID]: Declare seteuid.Roland McGrath1-2/+36
[HAVE_SETEGID]: Declare setegid. (make_access, user_access) [HAVE_SETEUID]: Use seteuid. [HAVE_SETEGID]: Use setegid.
1994-04-21(fatal, makefile_fatal): Die with 2; 1 is reserved for -q answer.Roland McGrath1-2/+2
1994-03-23entered into RCSRoland McGrath1-1/+2
1994-03-04Formerly misc.c.~31~Roland McGrath1-19/+3