summaryrefslogtreecommitdiff
path: root/remake.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix VMS implicit rules and UNIX paths.John Malmberg2014-10-201-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes VMS implicit rules and UNIX style pathname handling. It also fixes some of the VMS style pathname handling, more work there will be needed later. TODO: There are other case insensitive platforms besides VMS. We need to find out why there is extra VMS code for this. This indicates either the extra VMS code is not needed, or the case insensitive support may not be complete on the other case insensitive platforms. * default.c: Add missing definitions to default_suffix_rules[] and default_variables[]. TODO: As it is important that VMS DCL mode definitions must always be a superset of UNIX definitions, a better way of maintaining the VMS DCL mode definitions should be devised. * dir.c (downcase_inplace): Add a reentrant downcase() routine. Add future support for VMS 8.2+ _USE_STD_STAT macro which will disable a lot of VMS specific code from compiling. (dir_file_exists_p): vmsify filename only if directory name has VMS directory delimiters. (file_exists_p): Handle both VMS and UNIX directories. (file_impossible): Handle both VMS and Unix directories. Track whether a VMS format path is needed for the return value. * file.c (lookup_file): Check if vmsify is needed; handle UNIX paths. * implicit.c (pattern_search): Enable UNIX paths. * read.c (parse_file_seq): Enable UNIX paths. * remake.c (f_mtime): Fix gpath_search call for VMS paths. * rule.c (count_implicit_rule): Enable UNIX paths, Fix VMS paths. * vpath.c (selective_vpath_search): Enable UNIX paths.
* Update Copyright statements for 2014.Paul Smith2014-09-301-1/+1
|
* * maintMakefile, various: Improve constification of the codebase.Paul Smith2014-07-071-2/+2
|
* [SV 42249] Propagate correct rule status results.Paul Smith2014-05-011-29/+46
| | | | | | | * remake.c (update_file, update_file_1, check_dep): Return an enum update_status value instead of an int, and keep the highest value we find as we walk the graph so that the ultimate status is correct. * tests/scripts/options/dash-q: Add a test for updating prerequisites.
* [SV 40361] Don't use vsnprintf(), which is an ISO C99 function.Paul Smith2013-11-231-31/+41
| | | | | | | | | | * output.c (error, fatal, message): Take an extra argument specifying how many bytes are used by the formatted arguments. (get_buffer): New function that allocates the requested buffer size. Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded. * makeint.h: Declare various helper macros for generating output. * *.c: Change all error(), fatal(), message() calls to use the macros, or pass the extra length argument directly.
* [Bug #39158] Source cleanups suggested by cppcheck utility.Paul Smith2013-07-211-1/+0
|
* Modify the update_status field in struct file to be an enum.Paul Smith2013-07-141-44/+46
| | | | | Makes the code a little clearer/cleaner, and solves a problem on systems where a char is unsigned by default.
* [SV #38442] Add library names to the string cache.Paul Smith2013-05-261-3/+3
|
* [SV #39028] Fix some small typos in messages.Paul Smith2013-05-261-1/+1
|
* Update source file format: remove TABs, use GNU coding styles.Paul Smith2013-05-171-310/+310
|
* Update copyright for changes in 2013.Paul Smith2013-05-171-1/+1
|
* cosmetics: fix few innocuous typosStefano Lattarini2013-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Most of these were found using Lucas De Marchi's 'codespell' tool. * ChangeLog: Fix minor typos. * ChangeLog.2: Likewise. * README.Amiga: Likewise. * TODO.private: Likewise. * function.c: Likewise. * glob/glob.h: Likewise. * job.c: Likewise. * main.c: Likewise. * readme.vms: Likewise. * remake.c: Likewise. * tests/ChangeLog: Likewise. * tests/NEWS: Likewise. * tests/README: Likewise. * tests/scripts/variables/private: Likewise. * vmsdir.h: Likewise. * signame.c: Likewise. While at it, improve line wrapping in the touched comment. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* Reconsider targets waiting for prerequisites. Fixes Savannah bug #37703.Paul Smith2013-04-061-1/+8
|
* Rename the make.h file to makeint.h for internal use only.Paul Smith2013-01-201-1/+1
|
* Force intermediate targets to be considered if their non-intermediatePaul Smith2012-09-101-0/+4
| | | | parent needs to be remade. Fixes Savannah bug #30653.
* Simplify copyrights using ranges of years.Paul Smith2012-03-051-3/+1
| | | | | The new GNU Maintainer's Manual allows the use of year ranges in certain situations; take advantage of this simplification.
* Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.Paul Smith2012-03-041-53/+53
| | | | Fixes Savannah bug #34530.
* Update copyright notices.Paul Smith2012-01-161-3/+3
|
* We compute various values for vpath lookup the first time throughPaul Smith2011-09-181-2/+2
| | | | | | | and store them in static variables; however one value (std_dirs) was not being stored statically so the second time through it was not set. Fixes Savannah bug #32511
* Ensure that -n takes precedence over -t.Paul Smith2011-09-021-0/+4
| | | | Patch from Michael Witten <mfwitten@gmail.com>
* * Fixups to the make man pagePaul Smith2011-02-211-5/+5
| | | | | | | | | | | * 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
* Update copyrights for 2010.Paul Smith2010-07-131-2/+2
|
* Implement linker-compatible library search.Boris Kolpackov2009-11-121-33/+68
|
* Update copyright years.Paul Smith2009-10-251-2/+2
|
* Fix Savannah bugs #15110, #25493, #12686, and #17740.Boris Kolpackov2009-09-301-17/+52
|
* - Add xcalloc() and call itPaul Smith2009-09-161-1/+1
| | | | | | | | | - 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
* - Fix Savannah bug #21824: don't loop through NULL cmds pointerPaul Smith2009-09-121-3/+1
| | | | - Fix Savannah bugs #24509, 18963: doc enhancements
* - Fix Savannah bug #13529Paul Smith2009-06-141-0/+13
|
* - Fix Savannah bug #19108Paul Smith2009-06-101-69/+81
| | | | | | | - Fix Savannah bug #17752 - Test suite: * When tests fail keep a "run" file containing the command invoked. * Support for the Valgrind "memcheck" and "massif" tools.
* - Add a new test suite for LIBPATTERNSPaul Smith2009-06-071-24/+20
| | | | | | - Fix Savannah bug #21198 - Fix Savannah bug #21823 - Fix Savannah bug #22010
* - Work around a bug in glibc glob(3), by avoiding GLOB_NOCHECK.Paul Smith2009-06-061-3/+4
| | | | - Fix issue in very parallel builds found building glibc.
* For mod times farther in the future, print the value in fixed-point ratherPaul Smith2007-11-051-2/+8
| | | | than exponential notation (patch from Bruno Haible).
* New special variable: .RECIPEPREFIXPaul Smith2007-11-041-3/+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.
* Incorporate Icarus Sparry's fix for 3330 and 15919, and test cases.Paul Smith2007-08-151-4/+13
| | | | | | | One of our translations disappeared from the translations site so remove it. The fdl.texi file was changed to not contain any @node entries, so add some around it in make.texi.
* * Update to GPLv3Paul Smith2007-07-041-4/+4
| | | | | * Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
* Fix some documentation gitches.Paul Smith2007-05-111-1/+1
| | | | | | | Fix an uninitialized variable. Add builtin rules for Objective C. Add a new debug line that shows where the commands that are about to be run were defined.
* This is a major update, which switches virtually every allocated-but-not-freedPaul Smith2007-03-201-42/+25
| | | | | | | | | | | | | | | 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.
* Fix from Eli for incorrect value of $(MAKE) on Cygwin.Paul Smith2006-11-181-13/+12
| | | | | | | | | | | | | | | | 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.
* Fixed a number of documentation bugs, plus some build/install issues:Paul Smith2006-10-011-4/+2
| | | | | | | | 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.
* Another round of cleanups:Paul Smith2006-04-091-5/+5
| | | | | | | | - 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.
* Code cleanup: Remove all references to PARAMS() & ansi2knr.Paul Smith2006-04-071-8/+9
|
* Add some alloca(0) calls for systems without "normal" alloca support.Paul Smith2006-03-201-0/+4
| | | | | Fix a file descriptor leak with make re-exec while using the jobserver. Update some release information.
* Fixed Savannah bug #16053.Boris Kolpackov2006-03-171-2/+2
|
* Numerous updates to tests for issues found on Cygwin and Windows.Paul Smith2006-03-101-2/+4
| | | | | | Revert a fix for $? including non-existent files as it shows a bug in the Linux kernel build. Give them a release to fix this. Add some changes from Eli Z. for Windows changes.
* Last of the copyright updates.Paul Smith2006-02-111-1/+2
|
* Update copyright and license notices on all files.Paul Smith2006-02-111-14/+11
| | | | Added new file strcache.c to various non-UNIX makefiles and build scripts.
* Fix Savannah bugs # 15341, 15534, and 15533.Paul Smith2006-02-061-46/+47
| | | | | Rewrite large chunks of the "Commands" section of the manual to better describe then backslash-newline handling, the SHELL variable, etc.
* Various updates, mainly to the Windows port, from Eli Zaretskii andPaul Smith2006-02-011-1/+2
| | | | Markus Maurhart.
* Various changes getting ready for the release of 3.81.Paul Smith2006-01-041-1/+4
| | | | | | - Updates to make.texi and make.1 and other documentation - Some VMS patches - Fix minor bugs reported on the mailing list and from Debian.
* Fixed bug #14334 by propagate the change of modification time to all theBoris Kolpackov2005-12-071-5/+27
| | | | double-colon entries only if it is the last one to be updated.