summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-09-10Include <assert.h> and use assert instead of printfs and abort.Roland McGrath1-9/+4
1994-09-10(decode_switches): Loop until optind hits ARGC, not just until getopt_longRoland McGrath1-17/+74
returns EOF. Initialize C to zero before loop; in loop if C is EOF, set optarg from ARGV[optind++], else call getopt_long. (decode_env_switches): Use variable_expand instead of allocated_variable_expand. Allocate a fresh buffer to copy split words into; scan characters by hand to break words and debackslashify. (shell_quote): New function. (define_makeflags): Allocate doubled space for switch args, and command variable names and values; use shell_quote to quote those things.
1994-09-09Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.3.71.2Roland McGrath1-0/+6
1994-09-09(Archive Suffix Rules): Remove Next pointer.Roland McGrath1-1/+1
1994-09-09(decode_switches): The non-option return from getopt is 1, not 0.Roland McGrath1-61/+145
(command_variables): New type and variable. (decode_switches, decode_env_switches): After making a variable definition, record the struct variable pointer in the command_variables chain. (define_makeflags): If ALL, write variable definitions for command_variables.
1994-09-09(other_args): Variable removed.Roland McGrath1-128/+61
(goals, lastgoal): New static variables (moved from auto in main). (main): Don't process OTHER_ARGS at all. Don't set variable MAKEOVERRIDES at all; define MAKE to just $(MAKE_COMMAND). (init_switches): Prepend a - (return in order) instead of a + (require order). (decode_switches): Don't set OTHER_ARGS at all. Grok '\0' return from getopt_long as non-option argument; try variable definition and (if !ENV) enter goal targets here. (decode_env_switches): Use allocated_variable_expand to store value. Use find_next_token to simplify word-splitting loop. Don't prepend a dash to uninterpreted value. Instead, if split into only one word, try variable definition and failing that prepend a dash to the word and pass it to decode_switches as a single arg.
1994-09-07(notice_finished_file): Only recheck modtimes if FILE->command_state wasRoland McGrath1-6/+5
cs_running on entry (meaning the commands actually just ran). (update_file_1): Whenever we set FILE->update_status, call notice_finished_file instead of just set_command_state.
1994-09-07(start_job_command): Whenever we set CHILD->file->update_status, callRoland McGrath1-4/+6
notice_finished_file instead of just set_command_state.
1994-09-07(set_command_state): Actually set FILE->command_state.Roland McGrath1-0/+2
1994-09-07(set_command_state): Fix typo.Roland McGrath1-1/+1
1994-09-07(set_command_state): Declare D.Roland McGrath1-1/+1
1994-09-07Add missing ".Roland McGrath1-1/+1
1994-09-07Changed all assignments of command_state members to calls toRoland McGrath2-9/+9
set_command_state.
1994-09-07(set_command_state): New function.Roland McGrath1-0/+13
1994-09-06Declare set_command_state.Roland McGrath1-0/+1
1994-09-06(init_switches): Put a + first in options.Roland McGrath1-1/+2
1994-08-21entered into RCSRichard M. Stallman1-1/+1
1994-08-10Formerly make-stds.texi.~29~gnu1-74/+248
1994-07-25Initial revisionRoland McGrath1-0/+43
1994-07-25Added trailing CRs.Roland McGrath1-65/+65
1994-07-25Changed all uses of ':' to PATH_SEPARATOR_CHAR.Roland McGrath1-6/+7
1994-07-25(directory_before_chdir): New variable, moved out of main (was local).Roland McGrath1-1/+19
(main) [__MSDOS__]: Look for \ or : to delimit last component of PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable. (die): Change back to `directory_before_chdir' before dying. Part of MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1994-07-25(PATH_SEPARATOR_CHAR): Macro removed (now in make.h).Roland McGrath1-3/+0
1994-07-25(PATH_SEPARATOR_CHAR): New macro; differing defns for [__MSDOS__] and not.Roland McGrath1-0/+6
1994-07-25[__MSDOS__]: Include <process.h>.Roland McGrath1-2/+99
(PATH_SEPARATOR_CHAR): New macro; differing defns for [__MSDOS__] and not. [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename, dos_batch_file): New variables. (reap_children) [__MSDOS__]: Don't call wait; just examine those vars. (unblock_sigs) [__MSDOS__]: Do nothing. (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork and exec. (load_too_high) [__MSDOS__]: Always return true. (search_path) [__MSDOS__]: Check for : or / in FILE to punt. Use PATH_SEPARATOR_CHAR instead of ':'. (construct_command_argv_internal) [__MSDOS__]: Wholly different values for sh_chars and sh_cmds. Wholly new code to handle shell scripts. Part of MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1994-07-25(expand_function: `shell') [__MSDOS__]: Wholly new implementation.Roland McGrath1-0/+68
1994-07-25[__MSDOS__] (dosify): New function.Roland McGrath1-0/+51
(dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and process the result instead of FILENAME itself. (file_impossible_p) [__MSDOS__]: Likewise. Part of MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1994-07-25[__MSDOS__]: Define GCC_IS_NATIVE.Roland McGrath1-0/+27
(default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'. (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to `bison -y', and LEX to `flex'. Part of MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1994-07-25Initial revisionRoland McGrath1-0/+65
1994-07-25(fatal_error_signal) [__MSDOS__]: Just remove intermediates and exit.Roland McGrath1-0/+5
Part of MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1994-07-25(set_file_variables): Add parens in length computation in .SUFFIXES depRoland McGrath1-1/+1
loop to quiet compiler warning. From Jim Meyering.
1994-07-25(read_makefile): Free FILENAME if we allocated it. From Jim Meyering.Roland McGrath1-1/+3
1994-07-20Update ISBN number to 1-882114-50-7 for edition 0.46.Roland McGrath1-1/+2
Use new macro ISBN set at top of file.
1994-07-08Split a shell command line in @example to avoid overfull hbox.Roland McGrath1-1/+2
1994-07-05(Goals): Say that only first target in first rule is default goal.Roland McGrath1-7/+27
(Archive Pitfalls): New node.
1994-07-04(selective_vpath_search): Use safe_stat in place of stat.Roland McGrath1-2/+2
1994-07-04(construct_include_path): Use safe_stat in place of stat.Roland McGrath1-2/+2
1994-07-04(search_path): Use safe_stat in place of stat.Roland McGrath1-1/+1
1994-07-04(find_directory): Use safe_stat in place of stat.Roland McGrath1-2/+2
1994-07-04(delete_target): Use safe_stat in place of stat.Roland McGrath1-1/+1
1994-07-04(ar_member_touch) [EINTR]: Do EINTR looping around fstat.Roland McGrath1-0/+4
1994-07-04(name_mtime): Use safe_stat in place of stat.Roland McGrath1-2/+10
(touch_file) [EINTR]: Do EINTR looping around fstat.
1994-07-04(safe_stat): New function, EINTR-safe wrapper around stat.Roland McGrath1-0/+20
1994-06-24(read_makefile): Check for a shell command first, and then strip leadingRoland McGrath1-41/+52
tabs before further checking if it's not a shell command line.
1994-06-24Fix typo in last change.Roland McGrath1-1/+1
1994-06-24[__arm]: Undefine POSIX.Roland McGrath1-9/+1
[!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system functions that return int.
1994-06-24(construct_command_argv_internal): After swallowing a backslash-newlineRoland McGrath1-1/+2
combination, if INSTRING is set goto string_char (new label) for normal INSTRING handling code.
1994-06-04Put #include of errno.h and decl of errno before #ifndef HAVE_GETLOADAVG.Roland McGrath1-8/+11
1994-06-04Don't check for sys_siglist and _sys_siglist with AC_HAVE_FUNCS.Roland McGrath1-1/+7
Instead use two AC_COMPILE_CHECKs.
1994-06-02[emacs]: Block input around the garbage reclamation.Richard M. Stallman1-0/+12
Include blockinput.h.