summaryrefslogtreecommitdiff
path: root/make.h
AgeCommit message (Collapse)AuthorFilesLines
2012-01-16Fix an issue with PATH_SEPARATOR_CHAR when cross-compiling for Windows.Paul Smith1-5/+9
Fixes Savannah bug #34818.
2012-01-16Create a new internal interface for defining new make functions.Paul Smith1-2/+1
This allows us to create new functions without changing function.c. You still have to modify the GNU make code (for now) though: this is simply a preliminary step to possibly allowing make to load modules. Modify the Guile integration to use this method rather than ifdefs in function.c.
2012-01-16Update copyright notices.Paul Smith1-3/+3
2012-01-15Add GNU Guile as an optional embedded scripting language for make.Paul Smith1-0/+5
On configure-enabled systems, configure will detect Guile installed (using pkg-config, which is how GNU Guile is distributed) and enable it if so. On all non-configure-enabled systems, currently, the default is for Guile support to be disabled.
2011-11-14Changes to resolve warnings.Paul Smith1-2/+3
Fixes Savannah bug #34608.
2011-05-02Extern the global declaration of stack_limit. Fixes Savannah bug #32753Paul Smith1-1/+1
2011-02-21* Fixups to the make man pagePaul Smith1-5/+10
* Minor syntax cleanups in the manual * In non-maintainer mode set NDEBUG to disable assert() * Performance improvements in strcache: Build Info 1000 2000 4000 3.82 -g 2.61s 8.85s 33.52s 3.82 -O2 1.90s 7.62s 27.82s New -g (with asserts) 1.03s 2.31s 5.79s New -O2 (no asserts) 0.65s 1.50s 3.52s
2010-11-06Improve backslash/newline handling to adhere to POSIX requirements.Paul Smith1-0/+4
2010-08-29Bump the version to 3.82.90.Paul Smith1-3/+3
Fix some doc bugs. Implement the --trace flag. Show filename/linenumber on error.
2010-07-20Fix up incorrect prototype.Paul Smith1-2/+2
2010-07-19- Many fixup patches from Savannah.Paul Smith1-2/+13
- Fix the test suite on Solaris (from Boris) - Update the manual for .ONESHELL
2010-07-13Update copyrights for 2010.Paul Smith1-2/+2
2010-07-12Add missing one_shell declaration.Eli Zaretskii1-0/+1
2010-07-12 make.h (alloca) [!__GNUC__]: Don't define prototype.Eli Zaretskii1-3/+4
(int w32_kill): Use pid_t for process ID argument. Savannah bug #27809.
2010-07-12Add the beginning of the .ONESHELL special feature.Paul Smith1-0/+1
Original patch by David Boyce. Modified by Paul Smith.
2010-07-01- Rename strieq() to patheq() for clarity.Paul Smith1-10/+10
- Convert xmalloc/memset pairs to xcalloc.
2009-11-12Implement linker-compatible library search.Boris Kolpackov1-1/+2
2009-10-25Update copyright years.Paul Smith1-2/+2
2009-10-03- Include <alloca.h> even on non-__GNUC__ systems.Paul Smith1-14/+11
- Add some tests for unresolved bugs.
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.