summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-10-05GNU Make release 4.1.4.1Paul Smith4-7/+10
2014-10-02Fix Cygwin compilation error.Eli Zaretskii1-2/+3
* job.c (construct_command_argv_internal) [HAVE_DOS_PATHS]: Fix initializer for sh_chars_sh. Reported by Denis Excoffier<cygwin@Denis-Excoffier.org>.
2014-10-01Fix last commit.Gisle Vanem1-1/+1
2014-10-01* makeint.h (ftruncate): Define also for __WATCOMC__.Gisle Vanem1-1/+1
Copyright-paperwork-exempt: yes.
2014-10-01Avoid compilation warnings.Eli Zaretskii2-3/+7
* main.c (find_and_set_default_shell, main) [WINDOWS32]: Declare variables 'const char *' to avoid compiler warnings. * job.c (construct_command_argv_internal) [!NDEBUG]: Declare 'end' and set it only if NDEBUG is not defined, to avoid compiler warnings.
2014-10-01Treat redirection of standard handles on Windows as it is done on Unix.Eli Zaretskii2-10/+14
* job.c (start_job_command) [WINDOWS32]: Compute outfd and errfd as on Posix platforms, and pass the results to process_easy. * function.c (windows32_openpipe) [WINDOWS32]: Accept an additional argument ERRFD and use it for redirecting the standard error handle passed to the subprocess. (func_shell_base) [WINDOWS32]: Pass the computed errfd to windows32_openpipe.
2014-09-30Update Copyright statements for 2014.Paul Smith98-104/+104
2014-09-30* tests/scripts/features/load: Avoid unused variable warnings.Paul Smith1-0/+2
2014-09-30* loadapi.c (gmk_eval): Use C90 syntax.Paul Smith1-1/+2
2014-09-30* job.c: fix make action continuation lines.Hartmut Becker2-45/+53
* vmsjobs.c: fix writing DCL command files when trimming (white spaces and $ signs) especially after a split (command continuation).
2014-09-15* configure.ac: Fix spacing in helptext of customsBernhard Reutner-Fischer1-2/+2
Copyright-paperwork-exempt: yes
2014-09-15Support MAKE_TERMOUT and MAKE_TERMERR on MS-Windows.Eli Zaretskii2-1/+32
* w32/compat/posixfcn.c (isatty, ttyname): New functions. * config.h.W32.template (HAVE_TTYNAME): Define. Add a prototype for ttyname.
2014-09-15* loadapi.c (gmk_eval): [SV 43221] Preserve var buff content for eval.Paul Smith1-0/+8
2014-09-15* main.c, NEWS, doc/make.text: Rename MAKE_TTY* to MAKE_TERM*Paul Smith3-11/+14
2014-09-14* main.c (main): Set MAKE_TTYOUT and MAKE_TTYERR.Paul Smith8-2/+61
* configure.ac: Test for isatty() and ttyname() * makeint.h: provide a substitute for ttyname() if it's not available. * config.ami.template, config.h-vms.template, config.h.W32.template: define/undefine HAVE_ISATTY/HAVE_TTYNAME macros. * NEWS, doc/make.texi: Document these new variables.
2014-09-07* tests/config-flags.pm.in, tests/scripts/features/archives: [SV 43046]Paul Smith2-10/+13
Use the "ar" program detected by configure when running the test suite.
2014-09-07* doc/make.texi: Clarify implicit rule lookup of phony targetsPaul Smith2-40/+33
Reported by Frank Heckenbach <f.heckenbach@fh-soft.de>
2014-09-07Fix and enhance VMS library support.Hartmut Becker3-104/+281
* ar.c: fix VMS library search for members, which do not have suffixes, aka filename extensions. * arscan.c: fix time conversion and library callback routines. * default.c: more suffixes and automatically create the VMS library if it doesn't exists.
2014-09-07Enhance VMS exporting make environment variables.Hartmut Becker2-2/+37
* config.h-vms.template: add feature macro USE_DCL_COM_FILE to always write a DCL command file, enabled by default. * vmsjobs.c: with USE_DCL_COM_FILE enabled write make variables as DCL symbol assignments into the command file. This enables printing directory and make level info for recursive use of make. This also enables forced DCL symbol substitution in the actions.
2014-09-07Fix VMS automatic variable expansionHartmut Becker1-1/+39
* function.c: add VMS code to func_notdir_suffix and func_basename_dir to work on comma separated lists; this fixes the expansion of $(^D), $(+D) and the F variants for VMS.
2014-09-07* main.c [VMS]: Say that parallel jobs (-j) are not supported on VMSHartmut Becker1-1/+1
2014-09-07Enhance/fix VMS ONESHELL implementation and command executionHartmut Becker2-102/+273
* job.c, vmsjobs.c: fix some double quote and new line handling; implement ONESHELL with writing multiple lines into one DCL command procedure; in ONESHELL allow VMS/make internal redirection only on the first line; fix the created DCL command procedure, which didn't abort on errors; return correct exit status from the DCL command procedure; preserve current procedure verification; make the generated command procedure more robust.
2014-09-07Enhance/fix VMS setting of program name, MAKE/MAKE_COMMAND variablesHartmut Becker5-140/+115
* default.c, main.c, makeint.h, vmsfunctions.c: prefix argv[0] with "mcr " for MAKE/MAKE_COMMAND and set the program name to the image filename (without the .exe;version) * vmsfunctions.c: remove obsolete code * vmsify: use xmalloc
2014-09-07Enhance/fix VMS exit code handling.Hartmut Becker8-19/+30
* commands.c, function.c, hash.c, job.c, main.c, output.c: use MAKE exit codes. * makeint.h: encode make exit codes so that they are VMS compatible. * job.c: check child exit code for VMS style exit codes. * vmsjobs.c: save and return VMS style exit code.
2014-09-07Enhance/fix VMS multi-line support.Hartmut Becker3-28/+53
* job.c: split the command line at a newline. * default.c, vmsjobs.c: change ECHO variable to a pseudo builtin, which ensures that the VMS/DCL ECHO ("write sys$output") is used and is correctly quoted. * vmsjobs.c: remove unused builtin 'rm'.
2014-09-07* config_flags_pm.com, [RENAMED test_make.com] run_make_tests.com:Hartmut Becker2-7/+8
Moved into tests directory.
2014-09-07Enhance/fix VMS build environmentHartmut Becker4-57/+140
* config.h-vms.template: make sure the CRTL version is known * makefile.com: always compile/link the guile module, remove VAXCRTL parameter, new LIST parameter * makefile.vms: always compile/link the guile module, use more complete dependencies * prepare_vms.com: helper to create a VMS config file when building from a snapshot of the repository
2014-09-07* configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues.Paul Smith5-7/+12
Reported by Paul Eggert <eggert@cs.ucla.edu>
2014-08-30Change the order of "makefile" and "Makefile" to match the manual.Eli Zaretskii1-1/+1
2014-08-30Fix regression with "makefile" not being found on MS-Windows.Eli Zaretskii1-1/+1
* read.c (read_all_makefiles) [WINDOWS32]: Recognize "makefile", all-lowercase, as a makefile. Reported by Michael Waeber <waeber@gmail.com>.
2014-07-16Fix compilation on MS-Windows.Eli Zaretskii1-0/+4
* makeint.h [WINDOWS32]: Don't declare 'program' as 'const char *', since it is modified in 'main'.
2014-07-12[SV 42695] Fix compilation error on MS-Windows.Eli Zaretskii1-0/+6
* main.c [WINDOWS32]: Don't declare 'program' as 'const char *', since it is modified in 'main'.
2014-07-12Fix defalt_makefiles[] for MS-Windows.Jonny Grant1-0/+4
* read.c (read_all_makefiles) [WINDOWS32]: Remove the redundant "makefile" and add "makefile.mak". Copyright-paperwork-exempt: yes
2014-07-07* arscan.c [ANDROID]: Android has no ar.h but supports archives.Fredrik Fornwall1-2/+2
Copyright-paperwork-exempt: yes
2014-07-07* read.c (eval): [SV 41677] Correct test for TAB vs. 8 spaces.Paul Smith2-1/+25
2014-07-07* output.c (pump_from_tmp): [SV 42378] Flush the output file regularly.Piotr Jaroszynski1-1/+5
Copyright-paperwork-exempt: yes
2014-07-07Update the regression test harness to support VMS.John Malmberg4-26/+638
* config_flags_pm.com, test_make.com: set up and run the regression test environment on VMS. * tests/run_make_tests.pl [VMS]: Use an alternate rmdir() implementation on VMS. (run_make_with_options) [VMS]: Provide VMS-specific quoting and shell invocations. (set_more_defaults) [VMS]: Set default values when running on VMS. * tests/test_driver.pl (vms_get_process_logicals) [VMS]: Retrieve the proper values from %ENV on VMS. (resetENV) [VMS]: Use it. (toplevel) [VMS]: Fix a bug with opendir() on some logical_devices. (compare_output) [VMS]: Convert VMS test output to a "standard" format. (_run_command) [VMS]: Handle signals and exit codes the VMS way. (remove_directory_tree_inner) [VMS]: Unlink all versions of the file.
2014-07-07* various: Assume ISO C89-compliant free() implementation.Paul Smith9-72/+34
2014-07-07* maintMakefile, various: Improve constification of the codebase.Paul Smith12-193/+193
2014-07-07[SV 41983] Support omitting the text argument to $(file ...)Paul Smith4-19/+41
Reported by Tim Murphy <tnmurphy@gmail.com> * function.c (func_file): Only write TEXT if it is not NULL. * NEWS, doc/make.texi: Document the new feature * tests/scripts/functions/file: Verify that the no-text version of $(file ...) works and doesn't add a newline.
2014-05-13NMakefile.template ($(OUTDIR)/posixfcn.obj): Fix a typo.Jacques Germishuys1-1/+1
Copyright-paperwork-exempt: yes.
2014-05-01[SV 42249] Propagate correct rule status results.Paul Smith2-41/+78
* 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.
2014-02-08* Rename MAP_PATHSEP to MAP_DIRSEP.Paul Smith3-17/+17
2014-02-08* configure.ac: Fixup for newer autoconf/automakePaul Smith1-0/+4
2014-02-08* output.c: Ensure space for final nul byte in fmtbuf.Ray Donnelly1-5/+5
Copyright-paperwork-exempt: yes
2014-02-07Improve error reporting in the Windows port when env size is too large.Gisle Vanem3-4/+11
w32/subproc/misc.c (arr2envblk): Compute and return the size of the environment passed to child process. w32/subproc/sub_proc.c (process_begin): If the call to CreateProcess failed with EINVAL, and the required environment size was larger than 32KB, assume it's a Windows XP limitation, and display an error message to that effect. w32/subproc/proc.h (arr2envblk): Update prototype. Copyright-paperwork-exempt: yes
2014-02-01* job.c (set_child_handler_action_flags): [SV 41341]Paul Smith1-4/+14
Ensure signal handler is in place before alarm(1).
2014-01-20* configure.ac: [SV 40790] Fix load autoconf variables.Alan Hourihane1-6/+6
Copyright-paperwork-exempt: yes
2014-01-17Allow the EMX build to use output_sync.Pavel Fedin1-14/+13
job.c (start_job_command): Move the child output diversion out of non-EMX branch. [__EMX__]: Don't use fixed FD_STDOUT and FD_STDERR in the call to child_execute_job. Copyright-paperwork-exempt: yes
2014-01-12* commands.c: [SV 40789] Remove unneeded header dlfcn.hPaul Smith1-2/+0