summaryrefslogtreecommitdiff
path: root/make.h
AgeCommit message (Collapse)AuthorFilesLines
2009-09-16- Add xcalloc() and call itPaul Smith1-1/+3
- Fix memory errors found by valgrind - Remove multi_glob() and empower parse_file_seq() to do its job: the goal here is to remove the confusing reverse/re-reverse we do on the file lists: needed for future fixes. - Add a prefix arg to parse_file_seq() - Make concat() variadic so it can take arbitrary #'s of strings
2009-06-07- Add a new test suite for LIBPATTERNSPaul Smith1-0/+8
- Fix Savannah bug #21198 - Fix Savannah bug #21823 - Fix Savannah bug #22010
2009-05-24Found this change in an old CVS workspace: rewrite savestring() to thePaul Smith1-1/+1
more standard xstrndup().
2007-11-04New special variable: .RECIPEPREFIXPaul Smith1-0/+3
Allows the user to reset the prefix character for introducing recipe lines from the default (tab) to any other single character, and back again. Also, reworked the manual to consistently use the word "recipe" to describe the set of commands we use to update a target, instead of the various phrases used in the past: "commands", "command lines", "command scripts", etc.
2007-10-10Some Windows fixes to allow builds to succeed.Paul Smith1-1/+1
2007-07-04* Update to GPLv3Paul Smith1-4/+4
* Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
2007-05-09Fix Savannah bug #19656: rationalize our use of case-insensitive stringPaul Smith1-10/+12
comparison functions to always use POSIX strcasecmp(). For non-POSIX systems that use other functions (strcmpi or stricmp) use a macro to alias strcasecmp to those. If we can't find any of them (VMS, plus whatever UNIX doesn't have them) then define our own version in misc.c.
2007-03-20This is a major update, which switches virtually every allocated-but-not-freedPaul Smith1-7/+8
string into the strcache. As a side-effect, many more structure members and function arguments can/should be declared const. As mentioned in the changelog, unfortunately measurement shows that this change does not yet reduce memory. The problem is with secondary expansion: because of this we store all the prerequisites in the string cache twice. First we store the prerequisite string after initial expansion but before secondary expansion, then we store each individual file after secondary expansion and expand_deps(). I plan to change expand_deps() to be callable in either context (eval or snap_deps) then have non-second-expansion targets call expand_deps() during eval, so that we only need to store that dependency list once.
2006-11-18Fix from Eli for incorrect value of $(MAKE) on Cygwin.Paul Smith1-11/+23
A few changes from char* to void* where appropriate, and removing of unnecessary casts. Much more work on const-ifying the codebase. This round involves some code changes to make it correct. NOTE!! There will almost certainly be problems on the non-POSIX ports that will need to be addressed after the const changes are finished: they will need to be const-ified properly and there may need to be some changes to allocate memory, etc. as well. The next (last?) big push for this, still to come, is const-ifying the filenames in struct file, struct dep, etc. This will allow us to store file names in the string cache and finally resolve Savannah bug #15182 (make uses too much memory), among other advantages.
2006-10-01Fixed a number of documentation bugs, plus some build/install issues:Paul Smith1-8/+10
16304, 16468, 16577, 17701, 17880, 16051, 16652, 16698 Plus some from the mailing list. Imported a patch from Eli to allow Cygwin builds to support DOS-style pathnames.
2006-04-09Another round of cleanups:Paul Smith1-35/+8
- Add more warnings. - Rename variables that mask out-scope vars with the same name. - Remove all casts of return values from xmalloc, xrealloc, and alloca. - Remove casts of the first argument to xrealloc. - Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp.
2006-04-07Code cleanup: Remove all references to PARAMS() & ansi2knr.Paul Smith1-89/+80
2006-02-15Fix Savannah bug #106: keep separate track of which variable we arePaul Smith1-0/+1
expanding, and use that info when generating error messages instead of the file info, where appropriate.
2006-02-11Last of the copyright updates.Paul Smith1-1/+2
2006-02-11Update copyright and license notices on all files.Paul Smith1-14/+11
Added new file strcache.c to various non-UNIX makefiles and build scripts.
2006-02-10- New code capability: a read-only string cache. Start of solution forPaul Smith1-1/+8
Savannah bug #15182, but not much uses it yet. Coming shortly. - Added short-circuiting $(and ..) and $(or ...) functions.
2005-10-24Make second expansion optional (partial implementation).Paul Smith1-1/+1
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-08-29Fix make.h preprocessor directive to work better with Windows compilers.Paul Smith1-1/+1
Fix some regression tests to (hopefully) work better on Windows.
2005-06-27Fix strerror() handling for systems which set ANSI_STRING.Paul Smith1-5/+4
Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function.
2005-06-25Fix Savannah bug # 13478. If -L is given, take the latest mtime for aPaul Smith1-1/+6
symlink even if it is "dangling" (it doesn't resolve to a real file).
2005-06-25Fix Savannah bug #1454: skip over semicolons (and comments) inside variablePaul Smith1-2/+0
references in target definition lines.
2005-06-12Fix Savannah bug # 1328: if stdout is redirected to a full filesystem, wePaul Smith1-2/+3
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-3/+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 second expansion in explicitBoris Kolpackov1-0/+4
rules, static pattern rules and implicit rules.
2004-12-05Fix bug with SHELL handling: make sure the variable struct is initialized.Paul Smith1-2/+0
2004-11-28Fix for bug #1276: Handle SHELL according to POSIX requirements.Paul Smith1-0/+2
POSIX requires that the value of SHELL in the makefile NOT be exported to sub-commands. Instead, the value in the environment when make was invoked should be passed to the environment of sub-commands. Note that make still uses SHELL to _run_ sub-commands; it just doesn't change the value of the SHELL variable in the environment of sub-commands. As an extension to POSIX, if the makefile explicitly exports SHELL then GNU make _will_ use it in the environment of sub-commands.
2004-09-21Remove sindex() and replace with strstr().Paul Smith1-2/+0
Windows: allow users to set SHELL to cmd.exe and have it behave as if no UNIX shell were found.
2004-05-16Various enhancementsPaul Smith1-1/+1
- OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
2004-03-06Don't use __STDC__; some compilers don't set it properly.Paul Smith1-1/+1
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-2/+2
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-25Fix the origin regression test.Paul Smith1-15/+0
Remove sample code from make.h I accidentally left behind.
2004-02-24Many compiler warning cleanups.Paul Smith1-1/+2
Small fixes for W32 (from Jonathan Grant <jg-make@jguk.org>) Maintainer enhancements to clean up the tree.
2004-02-23Numerous fixes: patches for OS/2; core for -f ''; makefile updates.Paul Smith1-1/+23
2003-11-03Added MINGW32 changes.Paul Smith1-1/+1
This commits a number of changes from Earnie Boyd that allows GNU make to build for MINGW32 systems. Only missing from this commit are the changes to configure.in etc.; I'm waiting for Earnie to sign papers for those new files. Also not here is any README.mingw32 etc. which would explain how to use this port.
2003-03-25Fix bug #2846.Paul Smith1-1/+10
2003-03-24Add support for OS/2, contributed by Andreas Buening <andreas.buening@nexgo.de>Paul Smith1-7/+40
Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
2003-01-30Portability fix for glob.h building in FreeBSD ports system.Paul Smith1-19/+8
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-09-11Fix HAVE_BROKEN_RESTART logic.Paul Smith1-0/+9
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/+14
Fix bug #103: allow ifdef, export, and unexport to expand their arguments.
2002-08-08Incorporate some VMS fixes.Paul Smith1-1/+3
Add -B option docs. Add .VARIABLES variable. Add a few new tests. Add a new translation: Swedish
2002-08-01New variables, .VARIABLES and .TARGETS.Paul Smith1-2/+2
2002-07-11Install Greg McGary's patches to port the id-utils hashing functions toPaul Smith1-12/+4
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-1/+3
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-29/+42
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.
2002-04-21Update GNU make to use Autoconf 2.53, Automake 1.6.1, Gettext 0.11.1.Paul Smith1-23/+9
We're using Gettext's "external" feature to avoid including the intl code in the GNU make distribution.
2001-06-01Fix for EINTR problems when using jobserver.Paul Smith1-8/+4
New translation files. Fix for @+ inside define macros being applied too widely. Various other bug fixes.
2000-06-23* Fix PR/1791.Paul Smith1-18/+6
2000-06-19* Various fixes for problems in the 3.79.0.1 pretest.Paul Smith1-1/+5
2000-06-14* More fixes for configuring gettext correctly.Paul Smith1-1/+18
2000-06-13* Some timestamp fixes from Paul Eggert.Paul Smith1-7/+3
* Fix compilation on Linux; use libintl.h and not gettext.h when using the system gettext.