summaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Collapse)AuthorFilesLines
1995-01-26(debug_signal_handler): New function; toggles debug_flag.Roland McGrath1-0/+14
(main): Handle SIGUSR1 with that.
1995-01-07(decode_switches): For --help, print usage to stdout.Roland McGrath1-5/+8
1994-11-07(define_makeflags): When no flags, set WORDS to zero.Roland McGrath1-1/+4
1994-11-06(define_makeflags): Terminate properly when FLAGSTRING is empty.Roland McGrath1-0/+2
1994-10-24(main): Move checks .IGNORE, .SILENT, .POSIX to snap_deps.Roland McGrath1-11/+2
1994-10-16(switches): Bump flag values for --no-print-directory andRoland McGrath1-2/+2
--warn-undefined-variables, so neither is 1 (which indicates a nonoption argument).
1994-10-16(main): Add missing code in .IGNORE test.Roland McGrath1-1/+1
1994-10-01(main): Define hidden automatic variable with command vars, andRoland McGrath1-5/+25
MAKEOVERRIDES to a reference to that. (define_makeflags): If posix_pedantic, write a reference to that instead.
1994-09-30(posix_pedantic): New variable.Roland McGrath1-2/+12
(main): Set posix_pedantic if .POSIX is a target. Fix .IGNORE and .SILENT hecks to require is_target.
1994-09-26(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.Roland McGrath1-1/+1
1994-09-26(quote_as_word): Renamed from shell_quote.Roland McGrath1-53/+67
Take new arg; if nonzero, also double $s. (main): Define MAKEOVERRIDES from command_variables here. (define_makeflags): Don't use command_variables here; instead write a reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
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-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-06(init_switches): Put a + first in options.Roland McGrath1-1/+2
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-04-21(main, decode_switches): Die with 2 for errors.Roland McGrath1-3/+7
(main): Accept 2 return from update_goal_chain and die with that.
1994-04-05(main): When disqualifying makefiles for updating, use double_colon pointerRoland McGrath1-3/+1
to find all entries for a file.
1994-03-23entered into RCSRoland McGrath1-1/+2
1994-02-16Formerly main.c.~105~Roland McGrath1-3/+3
1994-01-06Formerly main.c.~104~Roland McGrath1-2/+2
1993-12-16Formerly main.c.~103~Roland McGrath1-16/+20
1993-12-15Formerly main.c.~102~Roland McGrath1-1/+5
1993-10-27Formerly main.c.~101~Roland McGrath1-5/+3
1993-10-26Formerly main.c.~100~Roland McGrath1-2/+0
1993-10-25Formerly main.c.~99~Roland McGrath1-0/+2
1993-10-14Formerly main.c.~98~Roland McGrath1-5/+16
1993-09-28Formerly main.c.~97~Roland McGrath1-1/+1
1993-09-20Formerly main.c.~96~Roland McGrath1-14/+16
1993-09-09Formerly main.c.~95~Roland McGrath1-1/+9
1993-08-19Formerly main.c.~94~Roland McGrath1-3/+0
1993-08-11Formerly main.c.~93~Roland McGrath1-3/+9
1993-08-11Formerly main.c.~92~Roland McGrath1-0/+2
1993-08-11Formerly main.c.~91~Roland McGrath1-0/+5
1993-07-14Formerly main.c.~90~Roland McGrath1-19/+14
1993-06-25Formerly main.c.~89~Roland McGrath1-29/+9
1993-06-08Formerly main.c.~88~Roland McGrath1-2/+17
1993-06-04Formerly main.c.~87~Roland McGrath1-4/+9
1993-06-04Formerly main.c.~86~Roland McGrath1-7/+23
1993-06-03Formerly main.c.~85~Roland McGrath1-0/+2
1993-06-02Formerly main.c.~84~Roland McGrath1-9/+37
1993-05-26Formerly main.c.~83~Roland McGrath1-9/+12
1993-05-22Formerly main.c.~82~Roland McGrath1-11/+9
1993-05-14Formerly main.c.~81~Roland McGrath1-1/+5
1993-04-26Formerly main.c.~80~Roland McGrath1-4/+9
1993-04-14Formerly main.c.~79~Roland McGrath1-15/+20
1993-04-12Formerly main.c.~78~Roland McGrath1-2/+3
1993-04-08Formerly main.c.~77~Roland McGrath1-8/+8
1993-04-07Formerly main.c.~76~Roland McGrath1-10/+44
1993-04-02Formerly main.c.~75~Roland McGrath1-1/+0