Eli Zaretskii
dddd1be5ec
main.c (main, clean_jobserver): Move declarations of variables
...
not used in the WINDOWS32 build to the #else branch, to avoid
compiler warnings.
2012-01-28 16:54:00 +00:00
Eli Zaretskii
eb4f966971
Fix failures on MS-Windows when Make's standard handles are invalid.
...
This can happen when Make is invoked from a GUI application.
* w32/subproc/sub_proc.c (process_init_fd): Don't dereference
pproc if it is a NULL pointer.
(process_begin, process_cleanup): Don't try to close pipe handles
whose value is INVALID_HANDLE_VALUE.
(process_easy): Initialize hIn, hOut, and hErr to
INVALID_HANDLE_VALUE. If DuplicateHandle fails with
ERROR_INVALID_HANDLE, duplicate a handle for the null device
instead of STD_INPUT_HANDLE, STD_OUTPUT_HANDLE or
STD_ERROR_HANDLE. Don't try to close pipe handles whose value is
INVALID_HANDLE_VALUE.
* function.c (windows32_openpipe): Initialize hIn and hErr to
INVALID_HANDLE_VALUE. If DuplicateHandle fails with
ERROR_INVALID_HANDLE, duplicate a handle for the null device
instead of STD_INPUT_HANDLE or STD_ERROR_HANDLE. Fix indentation.
Don't try to close handles whose value is INVALID_HANDLE_VALUE.
2012-01-28 16:50:21 +00:00
Eli Zaretskii
715a11735f
function.c (define_new_function): Fix format strings in calls to `fatal'.
2012-01-25 18:16:14 +00:00
Paul Smith
89f7058b99
Handle NULL returns from Guile.
2012-01-18 13:31:11 +00:00
Paul Smith
9fb4cdeedb
Fix an issue with PATH_SEPARATOR_CHAR when cross-compiling for Windows.
...
Fixes Savannah bug #34818 .
2012-01-16 21:29:44 +00:00
Paul Smith
49cc211819
Create a new internal interface for defining new make functions.
...
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-16 03:32:49 +00:00
Paul Smith
3f6bb04e75
Update copyright notices.
2012-01-16 02:29:20 +00:00
Paul Smith
c992c4d80f
Add GNU Guile as an optional embedded scripting language for make.
...
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.
2012-01-15 22:41:53 +00:00
Paul Smith
dc2a6ceb81
Enable jobserver on W32 when using configure.
...
Some W32 cleanups: see Savannah bug #34830
Forgot to modify the config.h.W32.template file for jobserver support.
2011-11-15 21:12:53 +00:00
Paul Smith
4f47fbf953
Be sure to start parsing prereqs in the right place even if there are
...
escape characters (backslashes) in the target name.
See Savannah bug #33399
2011-11-14 07:31:06 +00:00
Paul Smith
9fcd90e36c
Changes to resolve warnings.
...
Fixes Savannah bug #34608 .
2011-11-14 02:26:00 +00:00
Paul Smith
83ce81fcaa
Don't use Hungarian notation: remove _p/_ptr from var names.
...
Fixes Savannah bug #32567 .
2011-11-14 00:58:49 +00:00
Paul Smith
63888b91f6
Support jobserver capability on Windows systems.
...
Implementation contributed by Troy Runkel <Troy.Runkel@mathworks.com>
2011-11-14 00:42:49 +00:00
Paul Smith
934f51d166
In very obscure situations we may write the free token back to the pipe.
...
Don't do that. I couldn't come up with a repro case for this!
2011-11-14 00:18:38 +00:00
Paul Smith
bfc3e1ca7c
Enable high-resolution timestamps for Darwin (Mac OSX)
...
Patch provided by Troy Runkel <Troy.Runkel@mathworks.com>
2011-11-13 23:39:54 +00:00
Paul Smith
d472624f33
When we re-exec the master makefile in a jobserver environment, ensure
...
that MAKEFLAGS is set properly so the re-exec'd make runs in parallel.
See Savannah bug #33873 .
2011-09-18 23:39:26 +00:00
Paul Smith
0369a93825
We compute various values for vpath lookup the first time through
...
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
2011-09-18 20:52:13 +00:00
Paul Smith
ef2b0425e7
Avoid certificate checks when getting PO files from translationproject.org
2011-09-17 01:45:09 +00:00
Paul Smith
a5c774a51b
Ensure variables defined in $(call ...) have global scope
...
Add a note about using #!/usr/bin/make -f to the manual.
Clean up the w32 subdirectory in the dist tarball.
2011-09-12 05:29:58 +00:00
Paul Smith
9a9f83e8b5
Ensure that -n takes precedence over -t.
...
Patch from Michael Witten <mfwitten@gmail.com>
2011-09-02 05:37:54 +00:00
Paul Smith
e4d5d43424
Save strings we're expanding in case an embedded eval causes them
...
to be freed (if they're the value of a variable that's reset for example).
See Savannah patch #7534
2011-08-29 16:20:19 +00:00
Paul Smith
b06b8c64a2
Fix another error related to whitespace handling in archives.
...
Newer version of VMS support strncasecmp() so update the config.h.
2011-06-12 16:22:04 +00:00
Paul Smith
f15efca811
Ensure private variables are not used when appending target-specific
...
variables. Fixes Savannah bug #32872 .
2011-05-07 20:03:49 +00:00
Paul Smith
b664d3a91d
Inverted the boolean test from what I wanted it to be. Added a
...
regression test to make sure this continues to work.
2011-05-07 14:36:11 +00:00
Eli Zaretskii
b5c065418f
job.c (construct_command_argv_internal): Don't assume shellflags
...
is always non-NULL. Escape-protect characters special to the
shell when copying the value of SHELL into new_line. Fixes
Savannah bug #23922 .
2011-05-07 08:29:13 +00:00
Paul Smith
bd6f63e563
Updated documentation to fix Savannah bugs #32058 and #31582
2011-05-02 15:11:23 +00:00
Paul Smith
6979e7e43b
Use the same algorithm for counting the number of words to sort as we
...
use to break up the list of words, so we're sure to get the same number.
Fixes Savannah bug #33125
2011-05-02 12:35:01 +00:00
Paul Smith
dc90160079
Extern the global declaration of stack_limit. Fixes Savannah bug #32753
2011-05-02 12:29:09 +00:00
Paul Smith
a81ee5209b
Avoid invoking glob() unless the filename has potential globbing
...
characters in it, for performance improvements.
2011-05-02 00:18:06 +00:00
Boris Kolpackov
15a79d723d
Delay caching of the file name in eval_makefile() until after all the
...
expansions and searches are complete. This fixes an assertion in a
situation where the MAKEFILES variable contains a file path that
contains tilde.
2011-04-29 15:27:39 +00:00
Paul Smith
b34438bee8
Add new feature: != shell assignment for portability with BSD make.
...
Feature submitted by David Wheeler.
2011-04-18 01:25:20 +00:00
Paul Smith
1454a04f81
* Fixups to the make man page
...
* 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
2011-02-21 07:30:11 +00:00
Paul Smith
ae2ab76fac
Check if the target-specific variable is the same as the global
...
variable, and if so don't try to update it. Savannah bug #31743 .
2010-11-30 14:48:52 +00:00
Paul Smith
391456aad7
Improve backslash/newline handling to adhere to POSIX requirements.
2010-11-06 21:56:23 +00:00
Paul Smith
a86d1693ba
Bump the version to 3.82.90.
...
Fix some doc bugs.
Implement the --trace flag.
Show filename/linenumber on error.
2010-08-29 23:05:26 +00:00
Paul Smith
3b1432d86a
Set shellflags to a reasonable default if it's not set already.
2010-08-29 04:50:26 +00:00
Eli Zaretskii
c3188c6f31
variable.c (define_automatic_variables) [__MSDOS__ || WINDOWS32]:
...
Remove trailing backslashes in $(@D), $(<D), etc., for consistency
with forward slashes. Fixes Savannah bug #30795 .
2010-08-27 15:01:42 +00:00
Paul Smith
5acda13ace
- Fix the NEWS file to be accurate
...
- Add oneshell to $(.FEATURES) (forgot that!)
- Fix Savannah bug #30612 : handling of archive references with >1 object
2010-08-14 02:50:14 +00:00
Paul Smith
036760a9fd
Fix Savannah bug #30723 : expand MAKEFLAGS before we re-exec after
...
rebuilding makefiles.
2010-08-10 07:35:34 +00:00
Eli Zaretskii
91be515567
w32/subproc/build.bat: Make all 3 cl.exe compile command lines
...
use the same /I switches. Fixes Savannah bug #30662 .
2010-08-07 08:55:17 +00:00
Eli Zaretskii
b6b6875986
function.c (func_shell) [WINDOWS32]: Reset just_print_flag
...
around the call to construct_command_argv, so that a temporary
batch file _is_ created when needed for $(shell). Fixes Savannah
bug #16362 .
2010-08-07 08:46:06 +00:00
Eli Zaretskii
8f029808af
Fix the DJGPP build.
...
configh.dos.template (HAVE_STRNCASECMP): Define.
2010-08-07 08:15:45 +00:00
Paul Smith
95f1a32d27
Release GNU make 3.82
...
- Update tests for Solaris bizarre-ness
- Update files for release
2010-07-28 05:39:50 +00:00
Eli Zaretskii
e954532d48
job.c (pid2str) [WINDOWS32]: Fix CPP conditionals for using %Id format.
2010-07-24 08:27:26 +00:00
Paul Smith
fba20a776d
- Many fixup patches from Savannah.
...
- Fix the test suite on Solaris (from Boris)
- Update the manual for .ONESHELL
2010-07-19 07:10:53 +00:00
Boris Kolpackov
df2fa7c5a5
Fix buffer overrun in concat().
2010-07-16 13:01:15 +00:00
Paul Smith
9903cda2a7
Update copyrights for 2010.
2010-07-13 01:20:10 +00:00
Paul Smith
ded9121846
Fixes to build_w32.bat for building with MSVC 64bit.
2010-07-12 20:32:59 +00:00
Eli Zaretskii
90b30b6e0e
*** empty log message ***
2010-07-12 17:17:45 +00:00
Paul Smith
7ba7dbca47
Add the beginning of the .ONESHELL special feature.
...
Original patch by David Boyce. Modified by Paul Smith.
2010-07-12 05:23:19 +00:00