home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / MAK358AS.ZIP / CHANGELO.G < prev    next >
Encoding:
Text File  |  1990-02-08  |  145.0 KB  |  3,840 lines

  1. Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2.  
  3.     * Version 3.58.
  4.  
  5. Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  6.  
  7.     * Version 3.57.7.
  8.  
  9.     * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
  10.     working files are never overwritten by the default rule.
  11.  
  12. Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  13.  
  14.     * rule.c (count_implicit_rule_limits): Redid loop control to not run
  15.     twice on freed rules.
  16.  
  17.     * GNUmakefile: Made `.dep' files be architecture-specific too.
  18.  
  19.     * main.c (main, log_working_directory) [USG]: Block children around
  20.     calls to `getwd' (actually `getcwd' on USG), because that function
  21.     sometimes spawns a child running /bin/pwd on USG.
  22.  
  23. Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  24.  
  25.     * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
  26.  
  27. Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  28.  
  29.     * make.man: Fixed repeated word.
  30.  
  31.     * make.texinfo (Missing): Reworded a buggy sentence.
  32.  
  33. Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  34.  
  35.     * main.c (print_version): Added 1990 to copyright notice.
  36.  
  37.     * Version 3.57.6.
  38.  
  39. Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  40.  
  41.     * file.c (rename_file): Don't free the storage for the old name, since
  42.     it might not have been malloc'd.
  43.  
  44.     * job.c (construct_command_argv): Call
  45.     allocated_variable_expand_for_file instead of variable_expand_for_file
  46.     to expand `$(SHELL)'.
  47.  
  48.     * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
  49.     to roland@prep.ai.mit.edu.
  50.  
  51. Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  52.  
  53.     * Version 3.57.5.
  54.  
  55. Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  56.  
  57.     * job.c (start_job): Only call wait_to_start_job for the first command
  58.     line in each sequence.
  59.  
  60. Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  61.  
  62.     * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
  63.     0, not > 1.
  64.  
  65.     * job.c (search_path): Don't return a pointer to local storage.
  66.     Allocate data space for the pathname instead.
  67.  
  68.     * function.c (expand_function: `shell'): Don't write garbage if the
  69.     child wrote no output.
  70.  
  71. Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  72.  
  73.     * Version 3.57.4.
  74.  
  75.     * file.h (struct file): New member `renamed', a `struct file *' that is
  76.     the place this file has been renamed to (or nil).
  77.     (check_renamed): Macro to check for a file having been renamed.
  78.     Dereferences the renaming and sets the given variable.
  79.     * file.c (rename_file): Completely rewritten.  Renames in place if
  80.     possible, or moves FILE to a different hash bucket if there is no
  81.     existing file with the new name.  If there is an existing file with the
  82.     new name, FILE is merged into it and FILE->renamed is set to point to
  83.     it.
  84.     * variable.c (merge_variable_sets): New fn to merge two variable sets.
  85.     (merge_variable_set_lists): New fn to merge two variable set lists.
  86.     * variable.h: Declare merge_variable_set_lists.
  87.     * remake.c (update_file_1, check_dep): Run `check_renamed' after
  88.     calling file_mtime, check_dep.
  89.     (update_file): Same after update_file_1.
  90.     (update_goal_chain, update_file_1, check_dep): Same after update_file.
  91.  
  92.     * read.c (uniquize_deps): New fn, broken out of record_files, to remove
  93.     duplicate deps from a chain.
  94.     (record_files): Use it.
  95.     * implicit.c (pattern_search): Use uniquize_deps.
  96.  
  97.     * file.h (file_mtime_1): New macro, like file_mtime, but take second
  98.     arg, passed to f_mtime.
  99.     (file_mtime): Implement as file_mtime_1 (file, 1).
  100.     (file_mtime_no_search): New macro: file_mtime (file, 0).
  101.     * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
  102.     searching if it is nonzero.
  103.     * main.c (main): Use file_mtime_no_search for makefiles.
  104.     * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
  105.  
  106.     * main.c (printed_version): New variable, init'd to zero.
  107.     (print_version): Set it to nonzero before returning.
  108.     (die): If -v and !printed_version, call print_version before clean up
  109.     and death.
  110.  
  111.     * main.c (log_working_directory): Keep track of whether or not the
  112.     "Entering" message has been printed, and return without printing the
  113.     "Leaving" message if not.
  114.  
  115.     * main.c (decode_switches): Don't complain about missing args before
  116.     checking for a noarg_value elt in the command_switch structure.
  117.  
  118. Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  119.  
  120.     * make.texinfo (Commands: Recursion: Options/Recursion): Document
  121.     special case of -j.
  122.  
  123.     * make.texinfo, main.c, job.c: Changed copyright notices to include
  124.     1990.
  125.  
  126.     * make.texinfo (Top): Fixed introductory paragraph, which said that
  127.     `make' itself (instead of the manual) has various chapters.
  128.     (Variables: Advanced: Substitution Refs): When pxref'ing about
  129.     `patsubst', use node `Text Functions', not `Functions'.
  130.     Add an xref about `patsubst' after description of $(var:a%b=c%d).
  131.     (Functions: Syntax of Functions): Explain why mixing delimiters in
  132.     function/var refs is unwise.  Clarify fn arg evaluation order.
  133.     (Options): Reworded sentence about `-e'.
  134.     (Implicit: Implicit Variables): Don't say `RM' is unused.
  135.     Say the dflt values for the flag vars is empty unless otherwise noted,
  136.     since some have defaults.
  137.     (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
  138.     in first example.
  139.     (Implicit: Last Resort): Don't say the .DEFAULT example creates files
  140.     "silently".  It's automatic, but not silent.
  141.     (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
  142.     for item 5.1.
  143.     (Archives: Archive Update): Added missing `next' pointer.
  144.     (Archives: Archive Symbols): Note that GNU `ar' deals with this
  145.     automatically.
  146.  
  147.     * job.c (search_path): New fn, to search for an executable file in a
  148.     search path (broken out of exec_command).
  149.     (exec_command): Take fourth arg, the shell program to use (if
  150.     necessary).  Use search_path for the program, and the shell program.
  151.     Pass args "file args ..." to shell program (with no -c), where FILE is
  152.     the full pathname of the program (script) to be run.
  153.     (child_execute_job): Pass shell program to exec_command.
  154.     * main.c (main): Ditto.
  155.  
  156.     * main.c (main): Don't write a message if exec_command returns, because
  157.     it will never return.
  158.  
  159. Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  160.  
  161.     * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
  162.     $(CFLAGS).
  163.  
  164. Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  165.  
  166.     * job.c (new_job): If start_job set the child's `command_state' to
  167.     `cs_finished', call notice_finished_file.
  168.  
  169. Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  170.  
  171.     * Version 3.57.3.
  172.  
  173. Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  174.  
  175.     * rule.c (convert_to_pattern): Accept files with dependencies as
  176.     suffix rules.
  177.  
  178. Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  179.  
  180.     * Version 3.57.2.
  181.  
  182.     * function.c (expand_function: `shell'): Don't clobber BUFFER and then
  183.     try to free it.
  184.  
  185.     * remake.c (update_file_1): Took code to force remake of nonexistent
  186.     deps out of #if 0, and changed the test to nonexistent non-intermediate
  187.     deps.  In version 4, I think removing this test completely will
  188.     implement the new feature that if a: b and b: c and c is newer than a,
  189.     b need not be remade.
  190.  
  191. Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  192.  
  193.     * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
  194.     names so that using VPATH works.
  195.  
  196. Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  197.  
  198.     * Version 3.57.1.
  199.  
  200. Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  201.  
  202.     * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
  203.     being updated.  (The exact opposite test was here before; why???)
  204.     (update_file_1): Set a dep's `changed' member after updating it if it
  205.     is phony and has commands (because they will then always be executed).
  206.  
  207. Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  208.  
  209.     * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
  210.     `inq_stats' call.
  211.     * compatMakefile (LOAD_AVG): Document UMAX_43.
  212.  
  213.     * Version 3.57.0.
  214.  
  215.     * commands.c (chop_commands): New function to chop commands into lines.
  216.     * job.c (new_job): Break that code out, and call chop_commands.
  217.     * remake.c (remake_file): Call chop_commands before looking at
  218.     FILE->cmds->any_recurse.
  219.  
  220.     * make.texinfo (Running: Goals): Don't say that the default target
  221.     won't be taken from an included makefile.
  222.  
  223.     * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
  224.     doesn't exist.
  225.  
  226. Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  227.  
  228.     * Version 3.57.
  229.  
  230.     * variable.c (try_variable_definition): Don't calculate useless value.
  231.  
  232.     * main.c (define_makeflags): Fixed -j propagation.
  233.  
  234.     * commands.c (execute_file_commands): Removed unused variable.
  235.  
  236. Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  237.  
  238.     * commands.c (execute_file_commands): If the commands are empty, call
  239.     notice_finished_file before returning.
  240.  
  241. Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  242.  
  243.     * remake.c (update_file_1): Don't always update a target that has no
  244.     deps.  Only do this for double-colon targets.
  245.  
  246. Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  247.  
  248.     * main.c (main) [hpux]: hpux == HPUX.
  249.     * compatMakefile (defines): Document that HPUX should be defined.
  250.  
  251. Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  252.  
  253.     * Version 3.56.8.
  254.  
  255.     * job.c (exec_command): Fixed what mode bits are checked.
  256.  
  257.     * remake.c (update_file_1): "No cmds and no deps actually changed"
  258.     loses if ! FILE->is_target.
  259.  
  260.     * make.texinfo (Variables: Setting): Don't say that spaces after a
  261.     variable definition are ignored (since they aren't).
  262.  
  263. Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  264.  
  265.     * Version 3.56.7.
  266.  
  267.     * remake.c (update_file_1): If, after being updated, any dependency
  268.     does not exist, remake the target.
  269.  
  270.     * remake.c (update_file_1): Always update if FILE has commands but no
  271.     deps.
  272.  
  273.     * commands.c (execute_file_commands): If we return early because there
  274.     are no commands, set FILE->updated.
  275.  
  276. Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  277.  
  278.     * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
  279.     `struct ar_hdr' members that are int or long int on Xenix.
  280.  
  281. Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  282.  
  283.     * arscan.c (ar_scan): Cosmetic clean ups.
  284.     (ar_name_equal): New function to compare names, handling truncated
  285.     member names and special `.o' truncation.
  286.     (ar_member_pos): Use ar_name_equal.
  287.     * ar.c (ar_member_date_1): Use ar_name_equal.
  288.  
  289.     * Version 3.56.6.
  290.  
  291.     * file.h (struct file): Made `update_status' a `short int', and moved
  292.     it before `command_state' so the bitfields can be packed better.
  293.  
  294.     * remake.c (files_remade): Made global.
  295.     (notice_finished_file): Don't increment files_remade.
  296.     * job.c (new_job): Do.
  297.  
  298.     * job.c (start_job): Don't return a value.  Always set
  299.     CHILD->file->command_state to either cs_running or cs_finished.
  300.     (new_job, child_handler): Don't expect start_job to return a value.
  301.     Instead, look at the file's command_state.
  302.  
  303.     * commands.c (chop_commands): Merged into job.c (new_job).
  304.     * commands.h: Don't declare chop_commands.
  305.  
  306.     * job.c (start_job): Made static.
  307.     (new_job): New function to create a `struct child' and call start_job.
  308.     (free_child): New function to free a `struct child'.
  309.     (child_handler, new_job): Call it.
  310.     * job.h: Don't declare start_job.  Do declare new_job.
  311.     * commands.c (execute_file_commands): Call new_job.
  312.  
  313.     * commands.c (execute_file_commands): Don't set FILE->update_status if
  314.     start_job fails.
  315.  
  316.     * function.c (expand_function): Don't use `reading_filename' and
  317.     `reading_lineno_ptr' if they're nil.
  318.  
  319. Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  320.  
  321.     * read.c (find_semicolon): New function to look for an unquoted ; not
  322.     preceded by an unquoted # in a string.
  323.     (read_makefile): Call it before expanding the line.  If it finds a ;,
  324.     cut the line short there before expanding it.  If not, call it again
  325.     after expanding.
  326.  
  327.     * commands.c (execute_file_commands): Don't check FILE->command_state.
  328.     We won't get called unless it's cs_not_started.
  329.  
  330.     * read.c (read_makefile): Call collapse_line on the variable-expanded
  331.     rule line after checking for ; and #.
  332.  
  333.     * job.c (start_job): When there are no more commands, always return 0.
  334.     * commands.c (execute_file_commands): Don't put the new child in the
  335.     `children' chain unless FILE->command_state is cs_running.
  336.  
  337.     * read.c (read_makefile): Rewrote ;-handling to only do it once (why
  338.     did I do it twice??) and to check for a # before the ;.
  339.  
  340.     * job.c (start_job): Set CHILD->file->update_status to 0 when we run
  341.     out of commands.  Set it to 1 before returning failure.
  342.     (child_handler): Don't set C->file->update_status to 0 when start_job
  343.     returns success and commands are not running.
  344.  
  345.     * read.c (read_makefile): If there is a # before the ; for commands,
  346.     forget the ; and commands.
  347.  
  348. Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  349.  
  350.     * job.c (child_execute_job): Pass -c to the shell.
  351.  
  352. Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  353.  
  354.     * Version 3.56.5.
  355.  
  356.     * main.c (define_makeflags): Cleaned up to keep better track of dashes
  357.     written, etc.
  358.  
  359.     * function.c (expand_function: `shell'): When converting newlines to
  360.     spaces in output, search with `index' calls rather than a simple loop.
  361.  
  362.     * main.c (main): Make sure stdout is line-buffered.
  363.  
  364.     * main.c (decode_switches): Always check for missing switch arg.
  365.  
  366. Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  367.  
  368.     * Version 3.56.4.
  369.  
  370. Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  371.  
  372.     * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
  373.     $%.
  374.  
  375.     * commands.c (set_file_variables): Include a trailing slash in the
  376.     directory variables (@D, etc.).
  377.  
  378.     * job.c (child_handler): Call notice_finished_file after changing a
  379.     child's state to `cs_finished'.
  380.     * remake.c (update_file_1): Don't call notice_finished_file if
  381.     FILE->command_state == cs_finished.
  382.  
  383. Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  384.  
  385.     * Version 3.56.3.
  386.  
  387. Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  388.  
  389.     * read.c (read_all_makefiles): When setting elements of MAKEFILES from
  390.     the contents of read_makefiles, make sure we're using the right
  391.     element.
  392.  
  393.     * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
  394.  
  395.     * Version 3.56.2.
  396.  
  397.     * remake.c (update_file_1): Return zero after calling remake_file if
  398.     FILE->command_state != cs_finished.  Test update_status thoroughly.
  399.  
  400.     * commands.c (execute_file_commands): Don't call notice_finished_file.
  401.  
  402.     * remake.c (remake_file): Return immediately after calling
  403.     execute_file_commands.
  404.  
  405. Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  406.  
  407.     * Version 3.56.1 (alpha).
  408.  
  409.     * file.h (struct file): Made `update_status' not be a bitfield, since
  410.     some broken compilers don't handle it right.
  411.  
  412.     * function.c (expand_function: `join'): Don't clobber the pointers and
  413.     then try to free them.
  414.  
  415.     * job.c (exec_command): Fixed & vs = precedence problem.
  416.  
  417. Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  418.  
  419.     * remake.c (update_file_1): Fixed typo in debugging output.
  420.  
  421.     * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
  422.     after /usr/lib/libLIB.a.
  423.  
  424. Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  425.  
  426.     * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
  427.     comma.
  428.  
  429. Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  430.  
  431.     * function.c (patsubst_function): If BY_WORD and the match is not a
  432.     full word, update the text pointer correctly.
  433.  
  434.     * function.c (expand_function: `word'): Don't lose track of the second
  435.     arg's expansion and free something else instead.
  436.  
  437. Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  438.  
  439.     * Version 3.56.
  440.  
  441. Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  442.  
  443.     * main.c (main): Make an array of the mtimes of the makefiles before
  444.     updating them, and compare their file_mtimes against this later.  Don't
  445.     re-exec if a makefile was successfully updated but didn't change.  If a
  446.     makefile failed to be remade and no longer exists, die.  If a makefile
  447.     failed to be remade, but changed anyway, re-exec.  If a makefile failed
  448.     to be remade, but is unchanged, continue on.
  449.  
  450. Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  451.  
  452.     * Version 3.55.6.
  453.  
  454.     * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
  455.     CHECK_LASTSLASH flag values used to match each member of TRYRULES.
  456.     When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
  457.     part of FILENAME before LASTSLASH.
  458.  
  459. Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  460.  
  461.     * dir.c (dir_file_exists_p): Check for FILENAME being nil before
  462.     checking for it being "".
  463.  
  464.     * main.c (define_makeflags): Fixed test for whether a flag/flag_off
  465.     option was non-default.  Also changed to generate a string that Unix
  466.     Make will grok (except for FP/int values and new flags).
  467.  
  468.     * job.c (child_execute_job): Don't use the shell's -c option.
  469.     Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
  470.  
  471. Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  472.  
  473.     * Version 3.55.5.
  474.  
  475.     * read.c (parse_file_seq): Check the beginning of the file name for a
  476.     `./', not the two chars after the end of the name (Q rather than P).
  477.  
  478.     * job.c (child_execute_job): Include all of ARGV in the arg list for
  479.     the shell.
  480.  
  481.     * main.c (define_makeflags): Don't include floating and positive_int
  482.     options in !PF.
  483.  
  484.     * job.c (exec_command): Set the effective gid to the real gid before
  485.     execing.
  486.  
  487.     * job.c (child_execute_job): Don't clobber the arg list when execing
  488.     the shell.
  489.  
  490. Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  491.  
  492.     * main.c (define_makeflags): Moved all the checking inside the switch.
  493.  
  494.     * load.c [LDAV_BASED] (load_average): When we can't get the load
  495.     average, return zero instead of running off the end.
  496.  
  497.     * file.c: Include variables.h.
  498.     * job.c: Declare dup2 and {block,unblock}_remote_children.
  499.     * file.h: Declare f_mtime.
  500.     * job.c: Don't declare construct_command_argv, since job.h does.
  501.     * function.c, main.c, load.c, remake.c: Include job.h.
  502.     * load.c [LDAV_BASED] (load_average): Declare nlist.
  503.     * variable.h: Declare print_file_variables.
  504.     * job.c [!USG]: Don't declare sigsetmask.
  505.     [!USG]: Declare getdtablesize.
  506.     Don't declare load_average.  Do declare wait_to_start_job.
  507.     Declare vfork, gete[gu]id, execve.
  508.     * commands.c: Declare remote_kill, getpid.
  509.     * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
  510.     lseek, read.
  511.     * make.h [not USG]: Declare sigsetmask.
  512.     * job.h: Declare wait_for_children and {block,unblock}_children.
  513.  
  514.     * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
  515.     directory.
  516.     (find_directory): When we want to read in the whole directory, call
  517.     dir_file_exists_p with nil instead of "".
  518.  
  519.     * file.h (struct file), job.h (struct child),
  520.       variable.h (struct variable): Use bitfields for flags.
  521.     * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
  522.     :BITS, else empty.
  523.     * compatMakefile (defines): Document ENUM_BITFIELDS.
  524.  
  525. Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  526.  
  527.     * Version 3.55.4 (alpha).
  528.  
  529.     * GNUmakefile (dist): Depend on default and doc.
  530.  
  531.     * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
  532.     NLIST_NAME_UNION, use n_un.n_name instead of n_name.
  533.     * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
  534.  
  535.     * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
  536.     already defined.
  537.  
  538. Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  539.  
  540.     * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
  541.     defined, define d_ino as d_fileno.
  542.  
  543. Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  544.  
  545.     * job.c: Don't declare exec_command static.
  546.  
  547.     * make.texinfo (Name Index): Changed title to include directives.
  548.  
  549.     * Version 3.55.3 (alpha).
  550.  
  551.     * make.texinfo (Running: Options): Document -e.
  552.  
  553.     * main.c (main): Always give imported environment variables origin
  554.     `o_env'.
  555.     * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
  556.     existing variable's origin, is `o_env', make it `o_env_override'.
  557.  
  558.     * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
  559.     * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
  560.  
  561. Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  562.  
  563.     * Version 3.55.2 (alpha).
  564.  
  565.     * variable.c (print_variable_set), rule.c (print_rule_data_base),
  566.     file.c (print_file_data_base): If NO_FLOAT is defined, don't use
  567.     floating-point for printing statistics.
  568.     * compatMakefile (defines): Document NO_FLOAT.
  569.  
  570.     * make.h (HASH): New macro to add the hashing value of one char to a
  571.     variable.c.
  572.     * file.c (lookup_file, enter_file, rename_file): Use it.
  573.     * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
  574.     * variable.c (define_variable_in_set, lookup_variable): Same here.
  575.  
  576.     * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
  577.     defined.
  578.  
  579.     * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
  580.     (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
  581.     (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
  582.     * commands.c (set_file_variables), dir.c (file_exists_p),
  583.     remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
  584.     pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
  585.     archive stuff.
  586.  
  587.     * commands.c (set_file_variables): Don't kill the last char of
  588.     directory names in $([@*<%?^]D).
  589.  
  590. Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  591.  
  592.     * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
  593.     run co if the target exists.
  594.  
  595.     * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
  596.  
  597.     * glob.c: Misc minor cosmetic changes.
  598.  
  599. Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  600.  
  601.     * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
  602.     to see if lseek fails.  On some systems, `avenrun' is at an offset >
  603.     (2**31)-1, and lseek succeeds, returning a negative value.
  604.  
  605. Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  606.  
  607.     * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
  608.     the passed rule was used, zero if not.
  609.     (install_pattern_rule): Pay attention to the return from
  610.     new_pattern_rule, and don't set the rule's `terminal' flag or give it
  611.     commands unless it's used.
  612.     (create_pattern_rule): Same idea.
  613.  
  614.     * dir.c (find_directory): Removed unused variable.
  615.  
  616.     * commands.c (execute_file_commands): Removed unused variable.
  617.  
  618.     * read.c (record_files): Don't use NAME after freeing it.
  619.  
  620. Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  621.  
  622.     * Version 3.55.1 (alpha).
  623.  
  624.     * function.c (string_glob): Don't add spaces after file names that
  625.     aren't added.  (Also means don't add spaces without checking the size
  626.     of the buffer.)
  627.  
  628.     * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
  629.     deps from the chain.
  630.     * main.c (main): Do it here, before calling update_goal_chain.
  631.  
  632.     * remake.c (update_goal_chain): When updating fails, change STATUS even
  633.     if MAKEFILES is set.  Also stop remaking when updating fails if not
  634.     under -k and MAKEFILES is not set.
  635.  
  636.     * remake.c (remake_file, update_file_1, notice_finished_file),
  637.     commands.c (execute_file_commands), make.h, commands.h: The functions
  638.     remake_file, notice_finished_file, and execute_file_commands no longer
  639.     return values, and their callers no longer expect values returned.
  640.  
  641.     * remake.c (notice_finished_file): Don't set FILE's modtime to now if
  642.     it is a non-target with no commands.
  643.  
  644. Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  645.  
  646.     * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
  647.     replace it with the name stored in read_makefiles by read_makefile.
  648.  
  649.     * remake.c (update_file_1): Don't decide not to remake if FILE has no
  650.     cmds and no deps actually changed if FILE doesn't have any deps.
  651.  
  652.     * file.c (remove_intermediate): Remove precious files that also have
  653.     the `dontcare' flag set.
  654.  
  655.     * remake.c (update_file_1): Don't always remake if FILE has cmds but no
  656.     deps; only if FILE is double-colon.  (I don't know why this should be
  657.     done for double-colon targets, but that's what Unix make does.)
  658.  
  659.     * load.c [LDAV_BASED] (load_average): Write error messages if the
  660.     various system calls fail.  Keep track of if we've failed before.
  661.     The first time we fail, write a message saying -l won't be enforced.
  662.     The first time we succeed after having failed, write a message saying
  663.     -l will be enforced again.
  664.  
  665.     * remake.c [USG]: Don't #include <sys/file.h>
  666.  
  667.     * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
  668.     else <sys/file.h> instead.
  669.  
  670.     * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
  671.     #include <errno.h> and declaration of `errno'.
  672.     [...] (dup2): Fixed so it won't always lose.
  673.  
  674.     * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
  675.     move, the aux and index files, so the TeX run can use them.
  676.  
  677.     * compatMakefile: Remove redundant comment.
  678.  
  679.     * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
  680.     <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
  681.     more than the one in <a.out.h>.
  682.     (load_average): Use the `n_un.n_name' field of the `struct nlist',
  683.     since the <a.out.h> declaration uses the union.
  684.  
  685.     * main.c (main): For the temporary files made for stdin makefiles, set
  686.     the `intermediate' and `dontcare' flags.
  687.     * file.c (remove_intermediates): Don't print any messages for files
  688.     whose `dontcare' flag is set.  (The only files that will be
  689.     intermediate and `dontcare' will be the temporary files made for stdin
  690.     makefiles.)
  691.  
  692.     * job.c (exec_command): Made global.
  693.     * job.h: Declare it.
  694.     * main.c (main): Use exec_command when re-execing.
  695.  
  696.     * make.h: Declare environ.
  697.     * make.c: Don't.
  698.  
  699.     * job.c (child_execute_job): New function to perform everything done in
  700.     the child side of a fork (for a job or `shell' function).
  701.     (start_job): Call it.
  702.     * job.h: Declare construct_command_argv and child_execute_job.
  703.     * function.c (expand_function: `shell'): Use child_execute_job.
  704.  
  705. Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  706.  
  707.     * function.c (expand_function: `shell'): Remove a trailing newline
  708.     instead of turning it into a space.
  709.  
  710.     * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
  711.  
  712.     * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
  713.     separately and define all those that aren't defined.
  714.  
  715. Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  716.  
  717.     * ar.c (ar_name): Return zero for `(foo)'.
  718.  
  719.     * Version 3.55.
  720.  
  721.     * make.texinfo (Rules: Multiple Targets): Make this node's `next'
  722.     pointer point to `Static Pattern'.
  723.     * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
  724.     pointer point to `Makefile Names'.
  725.  
  726.     * make.1: Renamed to make.man.
  727.     * compatMakefile: Define `mandir' and `manext'.
  728.     (install): Depend on $(mandir)/make.$(manext).
  729.     ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
  730.     ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
  731.  
  732. Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  733.  
  734.     * variable.c (target_environment): Allow variables that start with
  735.     underscores.
  736.  
  737. Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  738.  
  739.     * variable.c (target_environment): Reject variables that don't start
  740.     with letters.
  741.  
  742. Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  743.  
  744.     * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
  745.     page) in the tar file.
  746.  
  747.     * variable.c (target_environment): Don't write variables with origin
  748.     o_default (i.e., ones from default.c).
  749.     * make.texinfo (Commands: Recursion: Variables/Recursion): Document
  750.     that default variables are not put in the environment.
  751.  
  752.     * remake.c (update_file_1): Remake all targets with commands but no
  753.     deps.
  754.  
  755. Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  756.  
  757.     * remake.c (update_file_1): In the final loop, set the deps'
  758.     `changed' members if they are newer than FILE.
  759.  
  760.     * remake.c (update_goal_chain): Under -d, print a message if we decide
  761.     not to remake a makefile so as to avoid a possible infinite loop.
  762.  
  763. Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  764.  
  765.     * remake.c (remake_file): Cleaned up.
  766.  
  767.     * commands.c (execute_file_commands): If the commands are empty, set
  768.     FILE->update_status to zero before returning.
  769.  
  770.     * remake.c (notice_finished_file): Set `last_mtime' fields to zero
  771.     instead of calling name_mtime; file_mtime will do that later if anybody
  772.     cares.
  773.  
  774. Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  775.  
  776.     * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
  777.     `prev' pointer.
  778.  
  779.     * Version 3.54.9 (alpha).
  780.  
  781.     * make.texinfo: Fixed some @nodes.
  782.  
  783.     * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
  784.     after running update_file.
  785.  
  786.     * remake.c (notice_finished_file): If FILE has no commands, pretend its
  787.     modtime is now.
  788.  
  789.     * remake.c (update_file_1): In the loops that call update_file on the
  790.     deps, compare modtimes before and after (unless deps are still being
  791.     made) and set the deps' `changed' members.  Do not set the `changed'
  792.     members in the loop that prints the newer/older debugging messages.
  793.     * remake.c (update_file_1): If no deps changed and FILE has no
  794.     commands, decide it doesn't need remaking.
  795.  
  796.     * remake.c (update_file_1): Print a debugging message if we take
  797.     commands from default_file.
  798.  
  799.     * make.texinfo (Rules: Directory Search: Selective Search): Removed
  800.     note about warning for `vpath' with a constant pathname, since it isn't
  801.     warned about anymore.
  802.  
  803.     * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
  804.     are targets and have no deps.
  805.     * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
  806.     will not be remade if they are targets but have no dependencies.
  807.  
  808. Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  809.  
  810.     * remake.c (notice_finished_file): Increment files_remade for non-phony
  811.     files if they didn't exist before (even if they still don't).
  812.  
  813.     * job.c: Include <errno.h> and declare errno.
  814.  
  815.     * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
  816.     error), return instead of exiting the child process.
  817.  
  818.     * job.c (start_job): In the child side, if exec_command fails, try
  819.     using the shell.
  820.  
  821.     * job.c (start_job): In the child side, call unblock_children instead
  822.     of sigsetmask.
  823.  
  824.     * remake.c (notice_finished_file): Under -n or -q, always increment
  825.     files_remade for non-phony files.
  826.  
  827.     * rule.c (intall_pattern_rule): Use find_percent.
  828.  
  829.     * vpath.c (vpath_search): Pass the `percent' members to
  830.     pattern_matches.
  831.  
  832. Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  833.  
  834.     * vpath.c (struct vpath): New member `percent', to hold a pointer into
  835.     the pattern where the % is.
  836.     (construct_vpath_list): Call find_percent on the pattern and set the
  837.     new `percent' member.
  838.     * read.c (read_makefile): Don't run find_percent on `vpath' directive
  839.     patterns.
  840.  
  841.     * function.c (pattern_matches): Take new arg PERCENT, a pointer into
  842.     PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
  843.     space and run find_percent on it.
  844.     (expand_function: `filter', `filter-out'): Pass new arg to
  845.     pattern_matches.
  846.     * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
  847.     static pattern rules.  Save the percent pointer into implicit rule
  848.     targets, and pass them to create_pattern_rule.
  849.     * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
  850.     (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
  851.     pointers into the corresponding elements of TARGETS, where the %s are.
  852.  
  853. Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  854.  
  855.     * Version 3.54.8.
  856.  
  857.     * README.templatate, README-doc.template: New files, turned into README
  858.     and README-doc to go into the two distribution tar files.
  859.     * GNUmakefile: Added a rule to edit the version number in
  860.     README.template and README-doc.template, producing README and
  861.     README-doc.
  862.  
  863.     * remake.c (update_goal_chain): If -n or -q is in effect for a
  864.     makefile, and it got updated, don't change STATUS, so we can still
  865.     return -1 (meaning nothing was done).  This avoids an infinite loop on
  866.     "make -n Makefile".
  867.  
  868. Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  869.  
  870.     * remake.c (notice_finished_file): Treat -q the same as -n.
  871.  
  872.     * remake.c (update_goal_chain): Fixed handling of return from
  873.     update_file.  If -n or -q is in effect, ignore it.
  874.  
  875.     * job.c (start_job): Don't test for -t.  We should never get called in
  876.     that case.
  877.  
  878. Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  879.  
  880.     * function.c (expand_function): Removed unused variables.
  881.     (handle_function): Removed unused variable.
  882.  
  883.     * main.c (main): Removed unused variable.
  884.  
  885. Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  886.  
  887.     * Version 3.54.7.
  888.  
  889.     * remake.c (notice_finished_file): If FILE's modtime actually changed,
  890.     increment files_remade.
  891.     (remake_file): Don't increment files_remade.
  892.  
  893.     * remake.c (update_file): Don't print "up to date" messages for
  894.     phony files.
  895.  
  896.     * job.c (child_handler): Don't set C->file->update_status to 1 if
  897.     start_job returns nonzero under -n or -t.
  898.  
  899.     * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
  900.  
  901.     * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
  902.     for a few months).
  903.  
  904. Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  905.  
  906.     * job.c (exec_command): Fixed to not ignore the last path component and
  907.     to do the right thing with an empty path.
  908.  
  909. Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  910.  
  911.     * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
  912.     Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
  913.  
  914. Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  915.  
  916.     * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
  917.     <sys/wait.h>, define it as (WTERMSIG != 0).
  918.  
  919. Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  920.  
  921.     * remake.c (remake_file): If FILE has no commands and is a target,
  922.     don't set its time to now.  The time gets reset by notice_finished_file
  923.     anyway, and it isn't needed since check_dep checks for nonexistence.
  924.  
  925.     * Version 3.54.6.
  926.  
  927.     * read.c (read_makefile): Don't read off the end of the string after an
  928.     `include'.
  929.  
  930.     * job.c (exec_command): New function to search the path for a file and
  931.     execute it.
  932.     (start_job): Use exec_command rather than execvp.
  933.  
  934.     * read.c (read_makefile): Expand `include' directive args before
  935.     parsing them.  Allow trailing whitespace after filename.
  936.  
  937.     * variable.c (target_environment): Put makelevel + 1, rather than
  938.     makelevel, in the `MAKELEVEL' envariable.
  939.  
  940. Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  941.  
  942.     * remake.c (notice_finished_file): Don't get the new modtime of phony
  943.     files.
  944.  
  945.     * remake.c (remake_file): Run commands instead of touching under -t if
  946.     FILE->cmds->any_recurse is set.
  947.  
  948.     * commands.h (struct commands): Add new member `any_recurse', to be set
  949.     nonzero if any `lines_recurse' element is nonzero.
  950.     * commands.c (chop_commands): Set the `any_recurse' member.
  951.  
  952.     * commands.c (execute_file_commands): Split chopping of commands into
  953.     lines into new function chop_commands.
  954.     * commands.h: Declare chop_commands.
  955.  
  956.     * read.c (read_makefile): Test for a line beginning with a tab after
  957.     checking for conditional lines, but before all other checks.
  958.  
  959. Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  960.  
  961.     * read.c (read_makefile): Match directives against collapsed line
  962.     and use that for their args.
  963.  
  964.     * read.c (read_makefile): Warn about extra text after `include'.
  965.  
  966. Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  967.  
  968.     * make.texinfo (Rules: Directory Search: Selective Search): Fixed
  969.     example to use correct `vpath' syntax.
  970.  
  971. Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  972.  
  973.     * Version 3.54.5.
  974.  
  975.     * job.c (start_job): In the child side, unblock SIGCHLD.
  976.  
  977. Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  978.  
  979.     * make.h: Don't include <sys/types.h> #ifdef sun.
  980.  
  981. Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  982.  
  983.     * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
  984.     directory names.
  985.  
  986.     * job.c (wait_for_children): Changed "waiting for children" message to
  987.     "waiting for unfinished jobs".
  988.  
  989. Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  990.  
  991.     * load.c (load_average): Use an unsigned offset into kmem.
  992.  
  993. Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  994.  
  995.     * variable.c (pop_variable_scope): Don't free the head of the chain of
  996.     variables in each bucket twice.
  997.  
  998. Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  999.  
  1000.     * GNUmakefile: Include COPYING in the doc tar file.
  1001.  
  1002.     * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
  1003.     "for" loops with next_token or end_of_token calls.
  1004.  
  1005. Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1006.  
  1007.     * Version 3.54.4.
  1008.  
  1009.     * compatMakefile: Documented new conditionals.
  1010.  
  1011.     * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
  1012.     Don't define dup2 if HAVE_DUP2 is defined.
  1013.  
  1014.     * job.c (child_handler): Interpret the return from start_job correctly.
  1015.  
  1016.     * remake.c (update_file_1): Don't write "target not remade because of
  1017.     errors" message under -n or -q.
  1018.  
  1019.     * read.c: Declare getpwnam.
  1020.  
  1021.     * glob.c: Use <dirent.h> if DIRENT is defined.
  1022.     [USG]: Don't declare memcpy, since <memory.h> does.
  1023.  
  1024. Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1025.  
  1026.     * misc.c (collapse_line): Copy the line over in the right place.
  1027.  
  1028. Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
  1029.  
  1030.     * remake.c: Conditionalize inclusion of <sys/file.h> on not
  1031.     USG, since HP-UX defines a `struct file' there.
  1032.  
  1033. Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1034.  
  1035.     * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
  1036.     and don't define other macros; this covers HP-UX.
  1037.     If WTERMSIG is not defined, use int or union wait based on USG and
  1038.     HAVE_SYS_WAIT; this covers BSD and SysV.
  1039.  
  1040.     * Version 3.54.3 (alpha).
  1041.  
  1042.     * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
  1043.  
  1044.     * job.c (unblock_children [USG]): Declare child_handler.
  1045.  
  1046.     * job.c: Renamed WRETCODE to WEXITSTATUS.
  1047.     [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
  1048.     WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
  1049.  
  1050.     * main.c (main): If there are no goals, fatal AFTER printing the data
  1051.     base under -p.
  1052.  
  1053. Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1054.  
  1055.     * glob.c [USG]: #define rindex as strrchr.
  1056.  
  1057.     * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
  1058.     NOFILE.
  1059.  
  1060. Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1061.  
  1062.     * Version 3.54.2 (alpha).
  1063.  
  1064.     * expand.c (variable_expand): When expanding recursive variable
  1065.     references (${${a}}), use the correct delimiters in the constructed
  1066.     variable reference.
  1067.  
  1068. Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1069.  
  1070.     * compatMakefile: Clear out and redefine the .SUFFIXES list because
  1071.     silly Sun 4 make defines .cps.h.
  1072.  
  1073.     * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
  1074.  
  1075.     * remake.c: Include <sys/file.h> for O_* on 4.2.
  1076.  
  1077.     * commands.c: Define sigmask if it's not defined.
  1078.  
  1079. Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1080.  
  1081.     * remake.c (remake_file): Don't always increment files_remade.
  1082.  
  1083.     * variable.c (push_new_variable_scope): Zero the new variable hash
  1084.     table.
  1085.  
  1086. Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1087.  
  1088.     * expand.c (variable_expand): When terminating the variable expansion
  1089.     buffer, use variable_buffer_output instead of a simply zero store,
  1090.     because the buffer may need to be enlarged.
  1091.  
  1092. Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1093.  
  1094.     * Version 3.54.
  1095.  
  1096.     * default.c (default_suffixes): Added `.ln'.
  1097.     (default_suffix_rules): Changed lint rules to use -C.
  1098.  
  1099. Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1100.  
  1101.     * job.c (start_job): Set `environ' to CHILD->environment before execing
  1102.     in the child process!
  1103.  
  1104. Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  1105.  
  1106.     * compatMakefile: Put job.h and rule.h in `srcs'.
  1107.  
  1108.     * Version 3.53.
  1109.  
  1110. Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  1111.  
  1112.     * job.c (start_job): If there are no more commands, return nonzero
  1113.     under -n or -t.
  1114.  
  1115.     * compatMakefile (make): Pass `-f' to mv.
  1116.  
  1117.     * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
  1118.     $(ARCH)/make instead of *.o and make.
  1119.  
  1120.     * function.c (string_glob): Don't try to use freed storage!
  1121.  
  1122.     * read.c (readline): If there is only one byte of space in the buffer,
  1123.     enlarge the buffer before reading more.
  1124.  
  1125.     * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
  1126.  
  1127. Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1128.  
  1129.     * GNUmakefile (depend): Split commands into two lines so they won't be
  1130.     so long when variable-expanded.
  1131.  
  1132.     * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
  1133.     describing it got removed when the USG/wait stuff was documented.
  1134.  
  1135. Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1136.  
  1137.     * Version 3.52.
  1138.  
  1139. Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1140.  
  1141.     * remake.c (check_dep): Drop circular dependencies instead of fataling.
  1142.     (update_file_1 already does this.)
  1143.  
  1144.     * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
  1145.     the assembler before the source file name.
  1146.  
  1147. Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  1148.  
  1149.     * Version 3.51.
  1150.  
  1151.     * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
  1152.  
  1153.     * file.c (remove_intermediates): If !SIG, write a single "rm" command
  1154.     line, listing all files.
  1155.  
  1156.     * read.c (read_makefile): Don't free the storage for the passed
  1157.     filename, since it might not be malloc'd.  When doing an included
  1158.     makefile, free the name's storage.
  1159.     (read_all_makefiles): Use variable_expand to find the value of
  1160.     `MAKEFILES'.  Free the storage for the names of -f makefiles.
  1161.     (read_makefile): Allocate storage for the makefile name in the
  1162.     `struct file' in read_makefiles.
  1163.  
  1164.     * make.texinfo (Running: Instead of Execution): Document the affect of
  1165.     + and $(MAKE)/${MAKE}.
  1166.  
  1167.     * make.texinfo (Functions: Foreach Function): Document that if the
  1168.     iteration variable was undefined before the `foreach' call, it will be
  1169.     undefined after the call.
  1170.  
  1171.     * commands.c: Split into commands.c, job.h, and job.c.
  1172.  
  1173.     * rule.c (try_implicit_rule, pattern_search): Moved to new file
  1174.     implicit.c.
  1175.  
  1176.     * rule.c: Split into rule.h, rule.c, and default.c.
  1177.     * default.c (install_default_pattern_rules): Renamed to
  1178.     install_default_implicit_rules.
  1179.     * make.h, main.c (main): Renamed uses.
  1180.  
  1181.     * make.c: Renamed to misc.c.
  1182.  
  1183.     * make.c (main, log_working_directory, decode_switches,
  1184.     decode_env_switches, define_makeflags, die, print_version,
  1185.     print_data_base): Moved to new file main.c.
  1186.  
  1187.     * commands.c (execute_file_commands): Don't collapse backslash-newlines
  1188.     here.  When chopping the commands up into lines, don't chop at
  1189.     backslash-newlines.
  1190.     (start_job): Collapse backslash-newlines after printing the line.
  1191.  
  1192.     * commands.c (start_job): Don't collapse backslash-newlines here.
  1193.     (execute_file_commands): Collapse backslash-newlines before chopping
  1194.     the commands up into lines.
  1195.  
  1196.     * commands.c (set_file_variables): Initialize the length counters for
  1197.     $^ and $? to zero!
  1198.  
  1199.     * commands.c (start_job): Use vfork instead of fork.  Someone else says
  1200.     the child and parent DO have separate file descriptors.
  1201.  
  1202.     * variable.c: Split internals into variable.c, function expansion into
  1203.     function.c, and variable expansion into expand.c.
  1204.     * function.c (handle_function): New function to check for a function
  1205.     invocation and expand it.
  1206.     * expand.c (variable_expand): Use handle_function.
  1207.     * variable.c (push_new_variable_scope): New function to push a new
  1208.     empty variable set onto the current setlist.
  1209.     (pop_variable_scope): New function to pop the topmost set from the
  1210.     current setlist and free its storage.
  1211.     * function.c (expand_function: `foreach'): Push a new variable scope
  1212.     for the iteration variable and pop the scope when finished.
  1213.     * variable.h: Declare new functions.
  1214.     * variable.c (initialize_variable_output): New function to return a
  1215.     pointer to the beginning of the output buffer.
  1216.     (save_variable_output): New function to save the variable output state.
  1217.     (restore_variable_output): New function to restore it.
  1218.     * expand.c (variable_expand): Use initialize_variable_output.
  1219.     (allocated_variable_expand): Use {save,restore}_variable_output.
  1220.     * variable.c (current_setlist): Renamed to current_variable_set_list
  1221.     and made global.
  1222.  
  1223. Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1224.  
  1225.     * remake.c (library_file_mtime): Check for libNAME.a in the current
  1226.     directory before doing VPATH search.
  1227.  
  1228.     * variable.c (print_variable_set): Don't write "# Variables", and write
  1229.     fewer blank lines.
  1230.     (print_variable_data_base): Precede the variables with "# Variables".
  1231.  
  1232.     * make.c (main): Print the data base under -p after doing everything
  1233.     else, just before exitting.  This way it gets info determined in
  1234.     updating the goal targets.
  1235.  
  1236.     * variable.c (print_variable_data_base): Split into print_variable,
  1237.     which prints one variable, and print_variable_set, which prints a set.
  1238.     Replaced with a call to print_variable_set for the global set.
  1239.     (print_file_variables): New function to print a given file's local
  1240.     variables.
  1241.  
  1242.     * file.c (print_file_data_base): Call print_file_variables to print
  1243.     each file's local variables.
  1244.  
  1245.     * commands.c (set_file_variables): Actually define the values for
  1246.     the $^ and $? variables!!!
  1247.  
  1248.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
  1249.     F versions of $^ and $?.
  1250.  
  1251.     * commands.c (start_job): In the child fork, use getdtablesize and a
  1252.     loop to close all file descriptors other than 0, 1, and 2.  We need to
  1253.     do this since not only the bad stdin pipe, but also some directories,
  1254.     may be open.
  1255.  
  1256.     * commands.c (start_job): Use fork instead of vfork, because a vfork
  1257.     parent and child share file descriptors, and our child needs to diddle
  1258.     with stdin.
  1259.  
  1260.     * variable.c (initialize_file_variables): When created a new variable
  1261.     set, zero out the hash table.
  1262.  
  1263.     * variable.c (target_environment): Don't use variables whose names are
  1264.     not made up of alphanumerics and underscores.
  1265.  
  1266.     * remake.c (update_file_1): Set the `parent' member of each dependency
  1267.     to FILE before updating it.
  1268.  
  1269.     * file.h (struct file): Add `parent' member.
  1270.  
  1271.     * variable.c (initialize_file_variables): Don't take second arg PARENT.
  1272.     Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
  1273.     to initialize it.
  1274.  
  1275.     * variable.h: Declare {allocated_}variable_expand_for_file.
  1276.  
  1277.     * variable.c (allocated_variable_expand): Now
  1278.     allocated_variable_expand_for_file, calling variable_expand_for_file,
  1279.     and taking second arg FILE.
  1280.     (allocated_variable_expand): New function, a wrapper around
  1281.     allocated_variable_expand_for_file, passing a nil second arg.
  1282.  
  1283. Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1284.  
  1285.     * commands.c (start_job): On the child side of the fork, always close
  1286.     the bad stdin file descriptor.
  1287.  
  1288.     * commands.c (struct child): New member `environment', to hold the
  1289.     environment for the child.
  1290.     (execute_file_commands): Set the new childs `environment' member to nil
  1291.     before calling start_job.
  1292.     (start_job): Set up CHILD->environment before running the commands if
  1293.     it is nil.
  1294.  
  1295.     * make.c (main): Don't call new_environ.  `shell' functions will now be
  1296.     run with the environment make was called with.
  1297.  
  1298.     * commands.c (child_handler): Don't check C->command_ptr before calling
  1299.     start_job since we now have to check C->file->cmds->command_lines and
  1300.     it's easier to let start_job handle all that.
  1301.  
  1302.     * commands.c (struct child): New member `command_line', to hold an
  1303.     index into file->cmds->command_lines.
  1304.     (execute_file_commands): Set the new child's `command_line' to 0 and
  1305.     its `commands' and `commands_ptr' to nil.
  1306.     (start_job): When CHILD->command_ptr runs out, increment
  1307.     CHILD->command_line and run the corresponding line from
  1308.     CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
  1309.     the CHILD->file->cmds->lines_recurse element for that line is set.
  1310.  
  1311.     * commands.c (execute_file_commands): Chop CMDS up into lines, setting
  1312.     its `command_lines' and `lines_recurse' members, if it wasn't already
  1313.     chopped.
  1314.  
  1315.     * commands.h (struct commands): New members `command_lines' and
  1316.     `lines_recurse'.  The first is an array of chopped-up lines; the second
  1317.     is an array of flags, each nonzero if the corresponding line is
  1318.     recursive.
  1319.  
  1320.     * variable.c (variable_expand_for_file): If FILE is nil, just do a
  1321.     vanilla variable_expand.
  1322.     (expand_function: `shell'): Pass second arg (as nil) to
  1323.     construct_command_argv.
  1324.  
  1325.     * commands.c (construct_command_argv): Use variable_expand_for_file on
  1326.     `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
  1327.     variables.  This handles file-local and recursive values correctly.
  1328.     To support this, take an additional argument FILE.
  1329.  
  1330.     * variable.c (initialize_file_variables): New function to initialize
  1331.     FILE's variable set list from PARENT's setlist.  PARENT is the
  1332.     immediate dependent that caused FILE to be remade, or nil if FILE is a
  1333.     goal.  (When user-level per-file variables are implemented, PARENT
  1334.     should be passed as nil when defining per-file variables.)
  1335.  
  1336.     * variable.c (variable_expand_for_file): New function to expand a line
  1337.     using the variable set of a given file, and reporting error messages
  1338.     for the file and line number of that file's commands.
  1339.  
  1340.     * variable.h: Don't declare lookup_variable_for_file.
  1341.  
  1342.     * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
  1343.     now uses current_setlist.
  1344.     (global_setlist): New static `struct variable_set_list', a setlist
  1345.     containing global_variable_set.
  1346.     (current_setlist): New static `struct variable_set_list *', a pointer
  1347.     to the current variable set list.
  1348.     (define_variable): Define in the current top-level set, not the global
  1349.     set.
  1350.  
  1351.     * commands.c (set_file_variables): New function to set up the automatic
  1352.     variables for a file in its own variable set.
  1353.     (execute_file_commands): Use set_file_variables.
  1354.  
  1355.     * variable.c (new_environ): Replaced with target_environment, taking an
  1356.     argument FILE, and returning an environment for FILE's commands.
  1357.  
  1358.     * variable.c, variable.h: Remove all global special variable pointers.
  1359.  
  1360.     * variable.c (define_variable_for_file): New function like
  1361.     define_variable, but takes additional arg FILE, and defines the
  1362.     variable in the variable set at the top of FILE's chain.
  1363.     (lookup_variable_for_file): New function like lookup_variable, but
  1364.     takes additional arg FILE, and looks the variable up in all of FILE's
  1365.     variable sets.
  1366.  
  1367.     * file.h (struct file): New member `variables', a `struct
  1368.     variable_set_list' containing the list of variable sets used in the
  1369.     expansion of the file's commands.
  1370.  
  1371.     * variable.c (variables): Replaced with static `struct variable_set'
  1372.     global_variable_set.
  1373.     (define_variable): Now define_variable_in_set, taking additional
  1374.     argument SET, the `struct variable_set' to define it in.
  1375.     (define_variable): Use define_variable_in_set with global_variable_set.
  1376.     (lookup_variable): Now lookup_variable_in_set, taking additional
  1377.     argument SET, the `struct variable_set' to look it up in.
  1378.     (lookup_variable): Use lookup_variable_in_set with global_variable_set.
  1379.     (lookup_variable_in_setlist): New function to look up a variable in a
  1380.     `struct variable_set_list' using lookup_variable_in_set.
  1381.  
  1382.     * variable.h (struct variable_set): New structure, containing a hash
  1383.     table and the number of hash buckets.
  1384.     (struct variable_set_list): New structure, containing a link for a
  1385.     linked-list, and a `struct variable_set'.
  1386.  
  1387.     * commands.c (start_job): Under -n, return what the recursive start_job
  1388.     call returns, since it might actually start a child.
  1389.  
  1390.     * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
  1391.  
  1392.     * commands.c (execute_file_commands): If start_job returns
  1393.     failure, but -t is set, set FILE->update_status to success.
  1394.     (start_job): If -t is set, and the commands are not recursive, return
  1395.     failure (is is done for -q).
  1396.  
  1397.     * remake.c (touch_file): New function to touch FILE.
  1398.     (remake_file): Use touch_file.  When touching a file, still do
  1399.     execute_file_commands.
  1400.  
  1401.     * remake.c (remake_file): Don't check question_flag (-q), since we
  1402.     can't know here if the commands are recursive.
  1403.  
  1404.     * commands.c (start_job): Don't use the `recursive' member of
  1405.     CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
  1406.     ${MAKE} in the command line here.
  1407.  
  1408.     * commands.h (struct commands): Remove `recursive' member.
  1409.  
  1410.     * rule.c (install_default_pattern_rules): Remove use of `recursive'
  1411.     member.
  1412.  
  1413.     * read.c (record_files): Don't check commands from $(MAKE) and set
  1414.     their `recursive' member.
  1415.  
  1416.     * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
  1417.     and SIGTERM, but don't send it to ourselves because it will cause a
  1418.     core dump.
  1419.  
  1420. Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1421.  
  1422.     * Version 3.50.
  1423.  
  1424.     * variable.c (variable_expand): Use allocated_variable_expand instead
  1425.     of expand_argument in a few places.
  1426.  
  1427.     * variable.c (allocated_variable_expand): Do static variable shuffling
  1428.     here instead of using expand_argument.
  1429.     (expand_argument): Use allocated_variable_expand.
  1430.  
  1431.     * variable.c (recursively_expand): New function to recursively expand
  1432.     its argument (a `struct variable'), returning the malloc'd value.
  1433.     (variable_expand): Use recursively_expand.
  1434.  
  1435. Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  1436.  
  1437.     * make.c (main): Fixed buggy fix in deciding to increase space for
  1438.     command-line variable definitions.  (First it never did it, then it
  1439.     always did it; now it does it when necessary.)
  1440.  
  1441. Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  1442.  
  1443.     * make.c (main): Fixed bug in deciding to increase space for
  1444.     command-line variable definitions.
  1445.  
  1446. Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1447.  
  1448.     * read.c (multi_glob): Use allocated_expand_variable for checking
  1449.     `HOME' variable for ~ expansion, since this may be called from inside a
  1450.     `wildcard' function expansion.
  1451.  
  1452.     * variable.h: Declare allocated_expand_variable.
  1453.  
  1454.     * variable.c (allocated_expand_variable): New function to do variable
  1455.     expansion in an allocated buffer, rather than the static one.
  1456.  
  1457.     * make.c (main): Don't set glob_tilde (it no longer exists).
  1458.  
  1459.     * variable.c (string_glob): Use multi_glob and parse_file_seq.
  1460.  
  1461.     * read.c (multi_glob): Do ~ expansion here.
  1462.  
  1463.     * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
  1464.  
  1465.     * variable.c (define_variable, lookup_variable): Use a smarter hashing
  1466.     algorithm (the same one used for files and directories).
  1467.     (VARIABLE_BUCKETS): Increased to 523.
  1468.  
  1469.     * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
  1470.     algorithm, spreading the bits about somewhat.
  1471.  
  1472.     * make.c (log_working_directory): Under `-p', precede the directory
  1473.     message with a `#'.
  1474.  
  1475.     * make.c (print_version): Under `-p', precede each line with a `#'.
  1476.     (print_data_base): Precede the header line with a `#' and include the
  1477.     date and time on it.
  1478.  
  1479.     * vpath.c (print_vpath_data_base): Precede non-directive
  1480.     lines with `#'s.
  1481.  
  1482.     * commands.c (print_commands): Precede the non-command line with a `#'.
  1483.  
  1484.     * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
  1485.     non-rule lines with `#'s.
  1486.  
  1487.     * dir.c (print_dir_data_base): Precede all lines with `#'s.
  1488.  
  1489.     * variable.c (print_variable_data_base): Changed format so that it can
  1490.     be makefile input.  Lines that are not variable definitions are
  1491.     preceded with `#'.  Nonrecursive variable definitions are made with all
  1492.     dollar signs doubled to reproduce the initial value.  Recursive
  1493.     variable definitions containing newlines are done with `define'
  1494.     directives.  Nonrecursive variable definitions containing newlines, and
  1495.     variable names containing :, =, or newlines, will come out garbled.
  1496.  
  1497. Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1498.  
  1499.     * Version 3.49.
  1500.  
  1501. Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1502.  
  1503.     * variable.c (expand_function: `filter'/`filter-out'): Use
  1504.     find_percent instead of pattern_p.
  1505.  
  1506.     * variable.c (expand_function: `patsubst'): Pass new args (both nil)
  1507.     to patsubst_expand.
  1508.     (variable_expand): For $(var:pat%=rep%) references, pass new args to
  1509.     patsubst_expand so as to avoid find_percent and thus disallow
  1510.     quoting the %s.
  1511.  
  1512.     * read.c (record_files): Pass new args to patsubst_expand.
  1513.  
  1514.     * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
  1515.     and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
  1516.     (or REPLACE) has already been run through find_percent, and
  1517.     PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
  1518.  
  1519.     * make.h: Declare find_percent instead of pattern_p.
  1520.  
  1521.     * read.c (pattern_p): Changed to find_percent, returning a pointer
  1522.     to the %, or nil if there is none.
  1523.     (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
  1524.     % in PATTERN.
  1525.     (read_makefile): Pass PATTERN_PERCENT to record_files.
  1526.  
  1527.     * make.texinfo (Rules: Static Pattern: Static Usage,
  1528.     Rules: Directory Search: Selective Search,
  1529.     Functions: Text Functions): Documented that `%' can be quoted.
  1530.  
  1531.     * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
  1532.     to allow quoted %s in patterns.
  1533.  
  1534.     * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
  1535.     to allow quoted %s.  Quoting backslashes are removed from REPLACE
  1536.     even if PATTERN contains no unquoted %.
  1537.  
  1538.     * read.c (pattern_p): Made global.
  1539.     * make.h: Declare pattern_p.
  1540.  
  1541.     * read.c (pattern_p): New function to search for an unquoted % in a
  1542.     string.  Backslashes quote %s and backslashes.  Quoting backslashes
  1543.     are removed from the string by compacting it into itself.  Returns
  1544.     nonzero if an unquoted % was found, zero if not.
  1545.     (record_files): Use pattern_p to check for implicit rules.
  1546.     (read_makefile): Use pattern_p to check for static pattern rules.
  1547.     Also use it to allow quoted %s in `vpath' patterns; warn about
  1548.     `vpath' patterns with no %s.
  1549.  
  1550. Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  1551.  
  1552.     * glob.c (glob_filename): Replace a `1' with the `l' that should
  1553.     have been there.  This incidentally stops it from dumping core.
  1554.  
  1555.     * glob.c (glob_filename): If the path is just a directory, with no
  1556.     file name pattern, return the directory alone.
  1557.  
  1558.     * glob.c (glob_tilde): New global variable (int), defaults to zero.
  1559.     (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
  1560.  
  1561.     * variable.c (string_glob): Keep a static allocated buffer for file
  1562.     names taken from the list, instead of allocating and freeing one
  1563.     every time.
  1564.  
  1565. Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1566.  
  1567.     * make.c (decode_switches): Get floating numbers from the right string.
  1568.  
  1569. Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  1570.  
  1571.     * commands.c (delete_child_targets): When deleting `also_make'
  1572.     files, include the target's name in the message:
  1573.         make: *** [foo] Deleting file `bar'
  1574.  
  1575. Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  1576.  
  1577.     * make.c (max_load_average, default_load_average): Default to -1.
  1578.  
  1579.     * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
  1580.     not equal.
  1581.  
  1582. Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  1583.  
  1584.     * variable.c (variable_buffer_output): Don't try to do pointer
  1585.     arithmetic between objects not in the same array.
  1586.  
  1587. Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1588.  
  1589.     * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
  1590.     changes to allow for strange compiler syntax.
  1591.  
  1592.     * rule.c (default_variables): Don't include "> $@" in
  1593.     $(PREPROCESS.S), since it's already in the .S.s rule.
  1594.  
  1595.     * file.c (enter_file): Make a new double-colon file the `prev'
  1596.     member of the bottom `prev' file (the one whose `prev' is nil).
  1597.  
  1598.     * read.c (do_define): Append newlines after copying the lines into
  1599.     the value buffer, so we end up with a trailing newline.
  1600.  
  1601.     * make.c (print_version): If the global variable
  1602.     `remote_description' is not nil or "", append "-%s" (its value) to
  1603.     the version number.
  1604.     * remote-*.c: Define remote_description appropriately.
  1605.  
  1606. Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1607.  
  1608.     * commands.c (error_status): Converted to new function child_error,
  1609.     taking new arguments TARGET_NAME and IGNORED, and writing an error
  1610.     message: "*** [target] Error 1" (or signal #, etc.), appending
  1611.     " (ignored)" if IGNORED is nonzero.
  1612.     (child_handler): Use child_error instead of error_status.
  1613.  
  1614.     * compatMakefile (all): Don't depend on `doc'.
  1615.  
  1616.     * compatMakefile (clean): Don't remove make-info*.
  1617.     (realclean): New rule, depends on `clean', removes tags, TAGS,
  1618.     and all Info and TeX files.
  1619.  
  1620. Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1621.  
  1622.     * variable.c (print_variable_data_base), file.c
  1623.     (print_file_data_base), rule.c (print_rule_data_base),
  1624.     Use floating-point for averages and percentages.
  1625.  
  1626.     * make.c (print_data_base): Print messages before and after the data
  1627.     base information.
  1628.  
  1629.     * commands.c (print_commands): Changed output format to separate
  1630.     lines in commands and prefix them with tabs.
  1631.  
  1632.     * dir.c (print_dir_data_base): Changed output format slightly.
  1633.  
  1634.     * vpath.c (struct vpath, construct_vpath_list,
  1635.     selective_vpath_search): Remove the `exists' member and its uses.
  1636.  
  1637.     * vpath.c (print_vpath_data_base): New function to print all
  1638.     selective and general VPATH search paths (for -p).
  1639.  
  1640.     * make.c (print_data_base): Call print_vpath_data_base.
  1641.  
  1642.     * file.c (print_file_data_base): Changed format to look more like a
  1643.     makefile rule.  Now reports all information in the `struct file'.
  1644.  
  1645.     * rule.c (print_rule_data_base): Changed format of display from:
  1646.       %: (terminal)
  1647.        depends on: RCS/%,v
  1648.     to:
  1649.       %: RCS/%,v
  1650.         is terminal.
  1651.         references nonexistent subdirectory.
  1652.     Also include number and percent that refer to nonexistent
  1653.     subdirectories.
  1654.  
  1655. Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1656.  
  1657.     * make.c (main): Figure out the level of recursion before writing
  1658.     the `Entering directory' message.
  1659.     * variable.c (define_automatic_variables): Don't figure out the
  1660.     level of recursion from `MAKELEVEL'.  It's now done in main.
  1661.  
  1662.     * Version 3.48.
  1663.  
  1664. Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1665.  
  1666.     * commands.c (child_handler): Set `update_status' to zero when there
  1667.     are no more commands.
  1668.  
  1669.     * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
  1670.     recurson in the message (make[1]: ...).
  1671.  
  1672.     * commands.c (child_handler): Change status to `cs_finished' when
  1673.     commands fail.
  1674.  
  1675.     * commands.c (start_job): Return 0 (success) if there were no more
  1676.     commands for the child.
  1677.     (child_handler): Change the status to `cs_finished' when start_job
  1678.     fails to start the commands.
  1679.  
  1680.     * make.c (main): Don't handle SIGEMT if it's not defined.
  1681.     Do handle SIGDANGER if it is defined.
  1682.  
  1683.     * commands.c (child_handler): Reorganized inner loop so that it
  1684.     doesn't try to inspect the child before finding it.
  1685.  
  1686. Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1687.  
  1688.     * make.c (end_of_token): Fixed bug wherein backslashes caused
  1689.     immediate return.
  1690.  
  1691.     * Version 3.47.
  1692.  
  1693.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document
  1694.     setting of `$*' for explicit rules.  Add note clarifying that
  1695.     automatic variables, though referred to in the documentation as
  1696.     `$<', etc. are no different than `$(<)', etc.
  1697.  
  1698. Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1699.  
  1700.     * file.c (enter_file): Don't strip leading `./'s.
  1701.  
  1702.     * read.c (parse_file_seq): Strip leading `./'s.
  1703.  
  1704. Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1705.  
  1706.     * make.texinfo (Commands: Parallel, Running: Options): Document that
  1707.     -l with no argument removes a previous load limit.
  1708.  
  1709.     * make.c (struct command_switch): New member `default_value'.
  1710.     (default_job_slots): Default value (of 1) for -j.
  1711.     (default_load_average): Default value (of 0, unlimited) for -l.
  1712.     (command_switches): Use default values for -j and -l.
  1713.     Also, -l without an arg now means no load limit.
  1714.     (define_makeflags): Don't write positive_int or floating options
  1715.     whose values are their defaults.
  1716.  
  1717.     * make.c (main): Under -w, write a `Leaving directory' message
  1718.     before re-execing.
  1719.  
  1720. Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1721.  
  1722.     * Version 3.46.
  1723.  
  1724.     * Makefile: Provide an easy place for system-specific definitions
  1725.     (-DUSG, etc.) and extra object files (for whatever).
  1726.  
  1727.     * make.texinfo: Miscellaneous fixes from RMS.
  1728.  
  1729. Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1730.  
  1731.     * rule.c (pattern_search): Put rules with `subdir' flags set in
  1732.     TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
  1733.     loop, don't do lookup_file or file_exists_p calls for dependencies
  1734.     of rules with `subdir' flags set, but still do vpath_search calls
  1735.     and intermediate-file searches.
  1736.  
  1737. Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1738.  
  1739.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
  1740.     new definition of $* for explicit rules.
  1741.  
  1742.     * commands.c (execute_file_commands): If FILE->stem is nil, figure
  1743.     out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
  1744.     store the name sans suffix in FILE->stem (and $*).
  1745.  
  1746. Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  1747.  
  1748.     * file.c (remove_intermediates): Don't use `file_exists_p' to check
  1749.     for the existence of intermediate files, because the hashed
  1750.     directories will probably be out of date.
  1751.  
  1752.     * commands.c (child_handler): Free the good stdin before running the
  1753.     next command line.
  1754.  
  1755.     * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
  1756.     defined.  Do case SIGDANGER (for IBM RT) if it is defined.
  1757.  
  1758.     * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
  1759.     (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
  1760.  
  1761.     * file.c (enter_file): If any `./'s are stripped off, allocate a new
  1762.     copy of the shortened name.
  1763.  
  1764.     * rule.c (pattern_search): Allocate the right length strings for
  1765.     `also_make' members.
  1766.  
  1767. Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1768.  
  1769.     * Version 3.45.
  1770.  
  1771.     * GNUmakefile: Make a separate tarfile of the DVI and info files.
  1772.  
  1773.     * make.c (define_makeflags): If a switch that takes an argument has
  1774.     its default value, put the switch in MAKEFLAGS with no arguments.
  1775.  
  1776.     * make.c (command_switches): Pass `-l' in MAKEFLAGS.
  1777.  
  1778. Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1779.  
  1780.     * GNUmakefile: Don't include the DVI and info files in the dist.
  1781.  
  1782.     * commands.c (child_handler): Don't call
  1783.     check_changed_{directories,vpaths}.
  1784.  
  1785.     * make.h: Don't declare check_changed_{directories,vpaths}.
  1786.  
  1787.     * vpath.c (check_changed_vpaths): Removed this function.
  1788.  
  1789.     * dir.c (struct directory): Remove `modtime' member.
  1790.     (find_directory): Don't set `modtime' member.
  1791.     (check_changed_directories): Removed this function.
  1792.  
  1793.     * remake.c (update_file_1): Set FILE->command_state to cs_finished
  1794.     if it didn't need to be remade.
  1795.  
  1796.     * remake.c (update_file): Only write the "up to date" message if the
  1797.     target when from `not_started' state to `finished' state without
  1798.     incrementing the count of files remade.
  1799.  
  1800.     * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
  1801.     defined, don't put them both in the `switch'.
  1802.  
  1803. Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1804.  
  1805.     * file.c (rename_file): Change FILE's name!!!
  1806.  
  1807.     * rule.c (create_pattern_rule): Set the `terminal' member of the new
  1808.     rule after calling new_pattern_rule, which zeros it.
  1809.  
  1810.     * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
  1811.  
  1812. Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1813.  
  1814.     * Makefile: Added a `clean' target.
  1815.  
  1816. Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  1817.  
  1818.     * Version 3.44.
  1819.  
  1820.     * file.c (rename_file): If a `struct file' for the renamed-to name
  1821.     exists, and it is a target or has deps or commands, barf.
  1822.     If not just remove the old one for put in the new one.
  1823.  
  1824.     * remake.c (update_file_1, check_dep): Changed it back so that equal
  1825.     modtimes to NOT make dependencies be considered newer.  RCS checks
  1826.     out files with equal modtimes as the RCS files, so this screws it.
  1827.  
  1828.     * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
  1829.  
  1830.     * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
  1831.     without a good standard alloca can get it from the Emacs
  1832.     distribution (or somewhere).
  1833.  
  1834.     * dir.c: Don't include <sys/stat.h>, since make.h does.
  1835.  
  1836.     * make.c: Removed debugging version of getwd.
  1837.  
  1838. Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1839.  
  1840.     * Version 3.43.
  1841.  
  1842.     * remake.c (update_file_1): If a dependency loop is found, don't
  1843.     fatal.  Emit an error message and remove the dependency.
  1844.  
  1845.     * remake.c (library_file_mtime): Fixed to use the right names.
  1846.     (update_file_1, check_dep): Consider a dependency "newer" than its
  1847.     dependent if they have the same modification time.
  1848.  
  1849. Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1850.  
  1851.     * file.c (remove_intermediates): Don't try to remove nonexistent files.
  1852.  
  1853. Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1854.  
  1855.     * Version 3.42.
  1856.  
  1857.     * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
  1858.     $(FFLAGS) so explicit rules expecting these (which are in System V)
  1859.     will work.  However, there is no way to make setting these affect
  1860.     the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
  1861.     [USG]: Set GET to `get' rather than `/usr/sccs/get'.
  1862.  
  1863. Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1864.  
  1865.     * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
  1866.     dir_name (V), because the latter may get freed.
  1867.  
  1868. Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1869.  
  1870.     * Version 3.41.
  1871.  
  1872.     * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
  1873.  
  1874.     * file.c (rename_file): If a file with the new name already existed,
  1875.     use the same storage space, after freeing the old file's name, deps,
  1876.     and `also_make' member, preserving the link in the chain.
  1877.     Also write an error message telling the user to report the incident;
  1878.     I don't think this should be able to happen, but I'm not sure.
  1879.  
  1880.     * file.c (rename_file): Don't add the hash values of the old and new
  1881.     names together!  Reset HASHVAL before computing the second value.
  1882.  
  1883.     * dir.c (check_changed_directories): Zero the new file hash table
  1884.     after allocating it.
  1885.  
  1886.     * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
  1887.     directory exists.
  1888.  
  1889.     * vpath.c (check_changed_vpaths): New function to run through the
  1890.     search paths of all VPATHs, making the `exists' members correspond
  1891.     to reality.
  1892.  
  1893.     * commands.c (child_handler): Call check_changed_vpaths.
  1894.  
  1895.     * make.h: Declare check_changed_vpaths.
  1896.  
  1897.     * vpath.c (struct vpath): New element `exists', an array of char
  1898.     flags; exists[N] is nonzero if searchpath[N] exists.
  1899.     (construct_vpath_list): Set the `exists' member.
  1900.     (selective_vpath_search): Don't search directories whose `exists'
  1901.     elements are zero.
  1902.  
  1903.     * read.c (read_makefile): Set the `dontcare' flag of makefiles
  1904.     from the MAKEFILES variable if they were not mentioned anywhere but
  1905.     in the MAKEFILES variable.
  1906.  
  1907.     * read.c (read_makefile): Don't write an error message if fopen
  1908.     fails for a makefile from the MAKEFILES variable.
  1909.  
  1910.     * dir.c (struct directory): Add `modtime' member to record the
  1911.     modification time of the directory when it was opened.
  1912.     (check_changed_directories): New function to check all known
  1913.     directories; if their modtimes have changed since they were opened,
  1914.     their file tables are cleared and they are reset to be read in.
  1915.  
  1916.     * commands.c (child_handler): Call check_changed_directories before
  1917.     returning.
  1918.     make.h: Declare check_changed_directories.
  1919.  
  1920. Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1921.  
  1922.     * Version 3.40.
  1923.  
  1924.     * make.c (print_version): Made the copyright say 1988, 1989.
  1925.  
  1926.     * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
  1927.     the end of the read_makefiles chain, since the latter may be from an
  1928.     included makefile.  (Why did I do this before?)
  1929.  
  1930.     * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
  1931.     command-line variable definitions into argv[0], only into the MAKE
  1932.     variable!
  1933.  
  1934. Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1935.  
  1936.     * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
  1937.     member name.
  1938.  
  1939. Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1940.  
  1941.     * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
  1942.     `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
  1943.  
  1944. Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1945.  
  1946.     * Version 3.39.
  1947.  
  1948.     * COPYING, make.texinfo: New GNU General Public License, version 1.
  1949.  
  1950.     * *.c, *.h, Makefile: New copyright notices for the new GNU General
  1951.     Public License, version 1.
  1952.  
  1953.     * commands.c [USG]: Define WRETCODE correctly (again).
  1954.  
  1955.     * variable.c (expand_function: `shell'): Don't capture the standard
  1956.     error output of the shell command.
  1957.  
  1958.     * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
  1959.     length.
  1960.  
  1961.     * load.c [not UMAX] (load_average): Don't clobber the first nlist
  1962.     member when trying to set the second!
  1963.  
  1964. Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  1965.  
  1966.     * commands.c (child_handler): Really ignore errors under -i and for
  1967.     - lines, don't just print a different message.
  1968.  
  1969.     * make.c (decode_switches): Fixed handling of arguments (or lack
  1970.     thereof) to switches.
  1971.  
  1972. Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  1973.  
  1974.     * commands.c (construct_command_argv): Don't clobber LINE when
  1975.     checking the IFS variable.
  1976.  
  1977. Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1978.  
  1979.     * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
  1980.     randomness when calls fail.
  1981.  
  1982.     * Version 3.38.
  1983.  
  1984.     * commands.c (fatal_error_signal): If handling a user kill signal
  1985.     (TERM, INT, HUP), wait for the children without printing the
  1986.     "Waiting for children" message, since they will die quickly.
  1987.  
  1988.     * Version 3.37.
  1989.  
  1990.     * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
  1991.     is nonzero block waiting for remote children.  If not, return 0 if
  1992.     we would have to block.
  1993.  
  1994.     * commands.c (child_handler) [not USG]: If called as a signal
  1995.     handler, use wait3 and don't block.
  1996.     [USG]: If called as a signal handler, return after handling one child.
  1997.  
  1998. Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1999.  
  2000.     * file.c (snap_deps): Process all double-colon entries of each file,
  2001.     not just the first one.
  2002.  
  2003.     * Version 3.36.
  2004.  
  2005.     * remote-stub.c: remote.c renamed.
  2006.     remote.c: Just include remote-stub.c
  2007.  
  2008.     * commands.c (child_handler): If we were called as a signal handler,
  2009.     return after handling one child.
  2010.  
  2011.     * commands.c [not USG]: Include <signal.h> and define `sigmask' if
  2012.     <signal.h> doesn't.
  2013.     (block_children, unblock_children): Use sigmask rather than
  2014.     bitshifting explicitly (and incorrectly).
  2015.  
  2016.     * remote.c (remote_kill): New function to send a signal to a
  2017.     remote child.
  2018.  
  2019.     * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
  2020.     each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
  2021.     all pending targets before waiting for children.
  2022.     (struct child): Add new member `deleted'.
  2023.     (start_job): Initialize `deleted' member to 0.
  2024.     (delete_child_targets): New function to delete a given child's
  2025.     targets, unless the `deleted' flag in the `struct child' says they
  2026.     have already been deleted.  Sets this flag before returning.
  2027.  
  2028. Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2029.  
  2030.     * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
  2031.  
  2032. Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2033.  
  2034.     * commands.c (construct_command_argv): Don't make the 0th element of
  2035.     the argument list be "sh" when executing /bin/sh, because start_job
  2036.     uses the 0th element as the program name.
  2037.  
  2038. Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2039.  
  2040.     * Version 3.35.
  2041.  
  2042.     * read.c (readline): Put a null in the beginning of the buffer
  2043.     before starting the reading loop.
  2044.  
  2045.     * read.c (read_makefile): Made main reading loop while
  2046.     !feof (infile), and removed EOF check after calling readline.
  2047.  
  2048. Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2049.  
  2050.     * remote.c (block_remote_children, unblock_remote_children): New
  2051.     (stub) functions to block and restore asynchronous notification of
  2052.     remote child death.
  2053.  
  2054.     * commands.c (block_children): Call block_remote_children.
  2055.     (unblock_children): Call unblock_remote_children.
  2056.     (child_handler): If called as a signal handler, block remote
  2057.     children on entry and unblock them before returning.
  2058.  
  2059.     * commands.c (child_handler): For unknown children, if they are
  2060.     remote, give their remote ID; if local, give their PID and make's.
  2061.  
  2062.     * commands.c (execute_file_command): Don't put a new child in the
  2063.     chain unless start_job succeeds.  Block children before calling
  2064.     start_job, and unblock them after putting the child in the chain and
  2065.     incrementing `job_slots_used' (if start_job succeeded).
  2066.  
  2067.     * commands.c (block_children, unblock_children): Make these globally
  2068.     visible (not `static').
  2069.     commands.h: Declare block_children and unblock_children.
  2070.  
  2071.     * variable.c (expand_function: `shell'): Use
  2072.     `shell_function_completed'.  Block children before forking and
  2073.     unblock after `shell_function_pid' is set properly and
  2074.     `shell_functon_completed' is reset to 0.
  2075.  
  2076.     * commands.c (child_handler): When the child of the `shell' function
  2077.     completes, set `shell_function_completed' to 1 if it actually ran,
  2078.     or -1 if it didn't (due to fork or exec failure).
  2079.  
  2080.     * commands.c (block_children, unblock_children): New functions to
  2081.     block and unblock the child termination signal.
  2082.     (wait_for_children): Use block_children and unblock_children.
  2083.     (execute_file_commands): Block children around the critical section
  2084.     wherein a new child is put on the chain.
  2085.  
  2086.     * make.c (main): Change the environment to contain the correct
  2087.     MAKELEVEL before re-execing.
  2088.  
  2089. Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2090.  
  2091.     * Version 3.34.
  2092.  
  2093. Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2094.  
  2095.     * rule.c (default_variables): Fixed $(LINK.c).
  2096.  
  2097. Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2098.  
  2099.     * Version 3.33.
  2100.  
  2101.     * version.c: Removed copyright notice, since this is a one-line file.
  2102.  
  2103.     * commands.c (error_status): Made it return BUF, rather than running
  2104.     off the end (this apparently worked on Sun 3s for some reason).
  2105.  
  2106.     * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
  2107.     rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
  2108.  
  2109. Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2110.  
  2111.     * Version 3.32.
  2112.  
  2113. Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2114.  
  2115.     * remake.c (remake_file): Don't touch phony targets.
  2116.  
  2117.     * rule.c (convert_to_pattern): Fixed an incorrect length passed to
  2118.     savestring.
  2119.  
  2120.     * variable.c (expand_function: `shell'): Close the read side of the
  2121.     pipe on the parent side of the fork.
  2122.  
  2123.     * commands.c (start_job): On the child of the fork, close the
  2124.     BAD_STDIN fd if we're not using it.
  2125.  
  2126.     * read.c (record_files): A file beginning with a dot can be a
  2127.     default target if it also contains a slash (as in `../foo').
  2128.  
  2129.     * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
  2130.     ignoring it to avoid a race condition when child_handler is returning.
  2131.  
  2132.     * commands.c (child_handler): Do blocking waits.
  2133.     (error_status): Return a string describing exit status.  (Split out
  2134.     of child_handler).
  2135.  
  2136.     * read.c (multi_glob): Change VECTOR to VEC for Alliant.
  2137.  
  2138. Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2139.  
  2140.     * Version 3.31.
  2141.  
  2142.     * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
  2143.  
  2144.     * make.texinfo (Options/Recursion): -d and -p go in the environment.
  2145.  
  2146.     * load.c: Include "commands.h".
  2147.  
  2148. Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2149.  
  2150.     * make.c (switches): -d and -p can come from the environment and are
  2151.     put into it.
  2152.  
  2153.     * read.c (record_files): Fixed the checking for duplicate deps so it
  2154.     doesn't clobber the first one.
  2155.  
  2156.     * make.texinfo: Documented default implicit rule changes.
  2157.  
  2158.     * rule.c: Revamped default suffix rules.  They now use Sun's style
  2159.     of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
  2160.     use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
  2161.     Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
  2162.     Ratfor Yacc support is gone, since nobody has yacc -r.
  2163.     All EFL support is gone, since nobody uses EFL.
  2164.  
  2165.     * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
  2166.  
  2167.     * commands.c [USG]: Fixed wait status bit encoding.
  2168.     [USG and not USGr3] (dup2): Define this for SysVr2.
  2169.  
  2170.     * make.h, dep.h, make.c [iAPX286]: Make allowances for this
  2171.     brain-damaged compiler.
  2172.  
  2173.     * make.texinfo (Variables: Flavors): Fixed a typo.
  2174.  
  2175. Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2176.  
  2177.     * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
  2178.  
  2179.     * Version 3.30.
  2180.  
  2181.     * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
  2182.     and wait3 even if USG.
  2183.  
  2184.     * read.c (record_files): Defining .DEFAULT with no deps or commands
  2185.     clears its commands.
  2186.  
  2187.     * rule.c (default_suffixes): Added `.sh'.
  2188.     (default_suffix_rules): Added single-suffix .sh rule, copies source
  2189.     to target and makes target executable.
  2190.     make.texinfo (Catalogue of Rules): Documented .sh rule and its use
  2191.     in conjunction with SCCS.
  2192.  
  2193.     * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
  2194.     default list ("" under -r).
  2195.     make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
  2196.  
  2197.     * rule.c (default_variables), make.texinfo (Implicit Variables):
  2198.     Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
  2199.  
  2200.     * rule.c (install_default_pattern_rules): Default variables are made
  2201.     recursive.
  2202.     (default_variables): Added "CPP", defined to "$(CC) -E".
  2203.     (default_suffixes): Added `.S', before `.s'.
  2204.     (default_suffix_rules): New rule for .S to .s, runs CPP.
  2205.     All rules that use CPP now include "$(CPPFLAGS)".
  2206.     make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
  2207.     Documented above changes.
  2208.  
  2209.     * commands.c [USG] (sys_siglist): Don't define.
  2210.     [USG] (init_siglist): New function to initialize sys_siglist.
  2211.  
  2212.     * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
  2213.     references.
  2214.  
  2215.     * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
  2216.     equivalent to `$(patsubst PAT,SUB,$(foo))'.
  2217.  
  2218.     * variable.c (variable_expand): Free the storage for the expansion
  2219.     of a recursive variable when it is nod longer needed.
  2220.  
  2221.     * variable.c (variable_expand): When checking for `$($(foo))', use
  2222.     lindex so as not to search for the second `$' outside the parens.
  2223.  
  2224.     * make.c (struct stringlist, main, decode_switches): Changed `index'
  2225.     member to `idx'.
  2226.  
  2227. Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2228.  
  2229.     * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
  2230.     rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
  2231.  
  2232.     * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
  2233.     (ar_scan [USGr3]): Remove trailing slashes from member names.
  2234.  
  2235. Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2236.  
  2237.     * make.texinfo (Makefiles: Overriding Makefiles): New node
  2238.     documenting use of .DEFAULT to have one makefile defer unmakeable
  2239.     targets to another.
  2240.  
  2241.     * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
  2242.     Mention empty commands and xref node `Empty Commands'.
  2243.  
  2244. Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2245.  
  2246.     * Version 3.29.
  2247.  
  2248.     * make.c (struct command_switch, command_switches, et al): New
  2249.     member `noarg_value', if not nil, ptr to value to use if no arg is
  2250.     given to a switch that would otherwise require one.  The -j option
  2251.     can now be given w/o an arg, to mean infinite jobs.
  2252.     * commands.c: If job_slots is zero, infinite jobs.
  2253.  
  2254.     * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
  2255.  
  2256.     * make.c (decode_switches): For a positive_int or floating option,
  2257.     if we moved to the next argument word, but found no argument for the
  2258.     option, move back to the correct word.
  2259.  
  2260.     * make.c (decode_switches): If we got any unknown options, die after
  2261.     processing all arguments.
  2262.  
  2263.     * GNUmakefile: Moved `include depend' to the end, so the default
  2264.     goal will be set before then.
  2265.  
  2266.     * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
  2267.     under #ifdef LDAV_BASED.  Only loop while we have jobs running.
  2268.     Sleep for increasing amounts (increase one second per iteration)
  2269.     before checking the load average (after the first check).
  2270.     Get the load average from function load_average.
  2271.     (wait_to_start_job [not LDAV_BASED]): Always return.
  2272.     (load_average [UMAX]): Fetch load average for Encore UMAX.
  2273.     (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
  2274.     [not NO_LDAV]: Define LDAV_BASED.
  2275.  
  2276. Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2277.  
  2278.     * Version 3.28.
  2279.  
  2280.     * commands.c (wait_for_children): Take second arg, ERROR.  If
  2281.     nonzero, and there are children, print a message on stderr.
  2282.     (execute_file_commands, fatal_error_signal): Pass second arg.
  2283.     * make.c (die), remake.c (update_goal_chain), variable.c
  2284.     (expand_function: `shell'): Ditto.
  2285.  
  2286. Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2287.  
  2288.     * commands.c (start_job): Call wait_to_start_job before forking.
  2289.  
  2290.     * load.c (load_average): Converted to wait_to_start_job.
  2291.  
  2292.     * remote.c: New file for remote execution functions.
  2293.     (start_remote_job_p): Return nonzero if the next job should be run
  2294.     remotely.
  2295.     (start_remote_job): Start a remote job and return an ID for it.
  2296.     (remote_status): Get status of dead remote children.
  2297.  
  2298. Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  2299.  
  2300.     * commands.c (start_job): If start_remote_job_p () returns nonzero,
  2301.     call start_remote_job to start the job rather than fork and exec.
  2302.     (child_handler):
  2303.  
  2304.     * commands.c (execute_file_commands): Moved load average checking to
  2305.     start_job.
  2306.  
  2307.     * commands.c (child_handler: USG): Record the pid wait returns.
  2308.  
  2309.     * load.c (UMAX): Added some #include's needed for UMAX.
  2310.  
  2311.     * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
  2312.     -1 return from glob_filename.
  2313.  
  2314.     * variable.c (variable_expand): Make sure we don't increment past
  2315.     the end of the string we were passed.
  2316.  
  2317.     * variable.c (variable_expand): Terminate the expansion.
  2318.  
  2319.     * file.c (rename_file): If there is already a file under the new
  2320.     name, set its contents equal to FILE's (ick).
  2321.  
  2322.     * variable.c (define_automatic_variables): Pass all the args to
  2323.     define_variable when defining MAKELEVEL!
  2324.  
  2325.     * commands.c (execute_file_commands): If max_load_average > 0, and
  2326.     we have children running, don't start up another child until the
  2327.     load average goes below max_load_average.
  2328.  
  2329.     * make.c: New variable `max_load_average'.
  2330.     (struct command_switch, decode_switches, decode_env_switches):
  2331.     Handle floating-point (double) args.
  2332.     (command_switches): Added `-l' switch to set `max_load_average'.
  2333.  
  2334.     * load.c (load_average): New file and function to return a double
  2335.     that is the current load average (1.00 scale).
  2336.     * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
  2337.  
  2338. Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2339.  
  2340.     * Makefile: Renamed to oldMakefile.
  2341.     * GNUmakefile: Make Makefile from oldMakefile and depend.
  2342.  
  2343.     * read.c (read_all_makefiles): When putting the default makefiles in
  2344.     the read_makefiles chain so they will be remade, put them in the
  2345.     right order.
  2346.  
  2347.     * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
  2348.     in serial, and return as soon as one goal whose `changed' member is
  2349.     nonzero  is successfully remade.
  2350.  
  2351.     * commands.c: Don't include <sys/fcntl.h>.
  2352.  
  2353.     * commands.c (construct_command_argv): Added ` to sh_chars.
  2354.  
  2355.     * make.h: Don't declare construct_makeflags.
  2356.  
  2357.     * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
  2358.     both before and after reading the makefiles, so the makefiles can
  2359.     use them and possible change them, and later children will get the
  2360.     right information.
  2361.     (construct_makeflags): Replaced with define_makeflags (static void),
  2362.     which defines the two variables.
  2363.     * variable.c (define_automatic_variables): Don't define MAKEFLAGS
  2364.     and MFLAGS.
  2365.  
  2366. Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2367.  
  2368.     * Version 3.27.
  2369.  
  2370.     * commands.c (child_handler): Reset the handler to ourselves when
  2371.     called for USG, since it has no safe signals.
  2372.  
  2373.     * commands.c: For USG, use an int rather than a `union wait' for
  2374.     wait calls, and dissect it with bitmasks.
  2375.     (child_handler): No wait3 system call in USG.  Since we can't
  2376.     protect from hanging, always return immediately if we have no
  2377.     children we know about and we're not running a `shell' function.
  2378.     (There is still the danger of hanging waiting for a child that died
  2379.     without our being notified.)
  2380.  
  2381.     * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
  2382.     is really in <fcntl.h>, and while BSD <sys/file.h> includes
  2383.     <fcntl.h>, USG doesn't.
  2384.  
  2385.     * make.c (main): Figure out the program name before doing anything
  2386.     which might need it (in a call to error or fatal).
  2387.  
  2388.     * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
  2389.  
  2390.     * arscan.c (ar_scan): Added missing & before buf (which is an int)
  2391.     if SARMAG is not defined (SysV).
  2392.  
  2393. Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2394.  
  2395.     * Version 3.26.
  2396.  
  2397.     * dir.c (find_directory, dir_file_exists_p): Keep track of how many
  2398.     directories we have open and don't let it be more than
  2399.     MAX_OPEN_DIRECTORIES (currently 10).
  2400.  
  2401.     * variable.c (expand_function: `foreach'): Use expand_argument
  2402.     rather than variable_expand so each repetition doesn't clobber the
  2403.     last!!!
  2404.  
  2405. Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  2406.  
  2407.     * Version 3.25.
  2408.  
  2409.     * Makefile: Define `install' target.
  2410.  
  2411.     * GNUmakefile: Don't include GNUmakefile or depend in the
  2412.     distribution file.
  2413.  
  2414. Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2415.  
  2416.     * commands.c (execute_file_commands): Don't clobber a null into
  2417.     random storage if there were no $^ and/or $? words.
  2418.  
  2419.     * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
  2420.     doesn't exist.
  2421.  
  2422.     * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
  2423.     archive file itself is known before we fetch or change the modtime
  2424.     of one of its members.
  2425.  
  2426.     * read.c (read_makefile): Expand variable and function references
  2427.     before parsing rules so variable can contain special characters
  2428.     (colons and semicolons).
  2429.  
  2430. Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2431.  
  2432.     * variable.c (expand_function: `filter', `filter-out'): Fixed so
  2433.     that filter-out works right.
  2434.  
  2435.     * variable.c (expand_function: `filter', `filter-out'): Made these
  2436.     functions use each word of their first argument as a pattern.
  2437.  
  2438. Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2439.  
  2440.     * Version 3.24.
  2441.  
  2442.     * read.c (record_files): If a target is listed more than once in a
  2443.     single rule (that defines commands), give a warning message rather
  2444.     than the counter-intuitive message saying commands were already
  2445.     defined (in the same place).
  2446.  
  2447.     * make.c (fatal, error): Made them both take 6 args since there is
  2448.     at least one error message that need that many.  Too bad vfprintf is
  2449.     not universal!
  2450.  
  2451.     * Version 3.23.
  2452.  
  2453.     * read.c (read_makefile): Moved the construction of the `struct
  2454.     commands' into record_files.  Call record_files before recursing for an
  2455.     included makefile so the higher-up will determine the default goal.
  2456.     (record_files): Take arguments COMMANDS, COMMANDS_IDX and
  2457.     COMMANDS_STARTED and construct a `struct commands.
  2458.  
  2459. Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2460.  
  2461.     * Version 3.22.
  2462.  
  2463.     * make.c (main): Made it a fatal error if we can't move back to the
  2464.     directory we started in before re-execing.
  2465.  
  2466.     * make.c (main): Get the current directory before doing anything
  2467.     else, so we know it even if we don't need it for the value of
  2468.     `MAKE', since we might want it when re-execing.
  2469.  
  2470. Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2471.  
  2472.     * Version 3.21.
  2473.  
  2474.     * read.c (record_files): Eliminate duplicate deps in a chain.
  2475.  
  2476.     * variable.c (expand_function: `sort'): Pass the right number to
  2477.     qsort, not one less.
  2478.  
  2479.     * remake.c (remake_file): Always call notice_finished_file if
  2480.     FILE->command_state == cs_finished.
  2481.  
  2482.     * commands.c (execute_file_commands): Call notice_finished_file to
  2483.     set FILE's status correctly when start_job fails (because it's out
  2484.     of commands or running under -n).
  2485.  
  2486. Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  2487.  
  2488.     * Version 3.20.
  2489.  
  2490.     * remake.c (update_file_1): Set the `update_status' of FILE to
  2491.     nonzero and set FILE's `updated' bit if we have decided to give up
  2492.     on remaking FILE because of errors in the dependencies.
  2493.  
  2494.     * rule.c (pattern_search): Debugging messages use `dependency' (vs.
  2495.     `dependent') properly.
  2496.  
  2497.     * make.texinfo (Conditionals: Conditional Syntax): Function index
  2498.     entries for `ifndef' and `ifneq'.
  2499.  
  2500.     * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
  2501.     decimal number of the makelevel, since it may be malformed or blank.
  2502.  
  2503.     * remake.c (remake_file): Call notice_finished_file after touching.
  2504.  
  2505. Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2506.  
  2507.     * Version 3.19.
  2508.  
  2509.     * GNUmakefile (dist): Pass the `-f' flag to compress.
  2510.  
  2511.     * vpath.c (build_vpath_lists): Check for VPATHS being nil after
  2512.     constructing the general VPATH list from the `VPATH' variable.
  2513.  
  2514. Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2515.  
  2516.     * make.c (fatal, error): Made error messages for recursive runs be
  2517.     shorter.
  2518.  
  2519. Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  2520.  
  2521.     * Version 3.18.
  2522.  
  2523.     * read.c (read_makefile): Made it eat leading spaces and formfeeds
  2524.     (but not tabs), like it's documented to.
  2525.  
  2526.     * read.c (read_makefile): Let included makefiles determine the
  2527.     default goal, as is done by System V Make.
  2528.  
  2529. Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2530.  
  2531.     * variable.c (new_environ): Don't increment VCNT when a variable is
  2532.     rejected.
  2533.  
  2534. Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  2535.  
  2536.     * Version 3.17.
  2537.  
  2538.     * rule.c (convert_to_pattern): Don't use the same storage for a name
  2539.     in two rules since new_pattern_rule may free this storage when a
  2540.     rule is discarded.
  2541.  
  2542.     * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
  2543.  
  2544. Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2545.  
  2546.     * Version 3.16.
  2547.  
  2548.     * GNUmakefile, Makefile: Fixed a typo in a comment.
  2549.     * Makefile: Removed malloc.o from object file list.
  2550.  
  2551.     * variable.c: Removed old debugging #define's for xmalloc and
  2552.     xrealloc so non-ANSI cpp's won't barf.
  2553.  
  2554.     * make.c (main): Made local array for temp file name static so
  2555.     compilers that don't do auto aggregate initialization won't barf.
  2556.  
  2557.     * read.c: Removed static declaration of copy_dep_chain since it is
  2558.     no longer static.
  2559.  
  2560. Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2561.  
  2562.     * rule.c (new_pattern_rule): If we threw out the new rule because it
  2563.     matched an old one and OVERRIDE was zero, don't put the freed
  2564.     pointer in the chain!
  2565.  
  2566. Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2567.  
  2568.     * Version 3.15.
  2569.  
  2570.     * variable.c (expand_function: `sort'): Don't do the sorting and
  2571.     writing out if there were no words in the first place.
  2572.  
  2573.     * remake.c (remake_file): Only fail with a "no way to make" message
  2574.     for a dependency (non-target) file.  If we don't know how to remake
  2575.     a target file, pretend it was successfully remade and is very new.
  2576.  
  2577.     * remake.c (remake_file): Don't increment `files_remade' for a
  2578.     non-target file we don't know how to remake.
  2579.  
  2580.     * read.c (record_files): Don't die with "both : and :: entries" for
  2581.     a file whose `is_target' flag is not set.
  2582.  
  2583. Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2584.  
  2585.     * variable.c (expand_function: `patsubst', `subst'): Free the right
  2586.     things!
  2587.  
  2588.     * variable.c (expand_function: `subst'): Don't clobber the
  2589.     pointer to the end of the second arg and then try to use it!!!
  2590.  
  2591. Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  2592.  
  2593.     * variable.c (expand_function: `patsubst'): Don't clobber the
  2594.     pointer to the end of the second arg and then try to use it!!!
  2595.  
  2596.     * variable.c (expand_function: `word' function): Made it parse its
  2597.     second argument correctly.
  2598.  
  2599.     * ar.c (ar_touch): Return 1 rather than -1 for on errors.
  2600.  
  2601. Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2602.  
  2603.     * Version 3.14.
  2604.  
  2605.     * GNUmakefile: Removed explicit rule for make.dvi since the built-in
  2606.     implicit rule now works.
  2607.  
  2608.     * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
  2609.     so that it really works, now that parens are counted.
  2610.  
  2611.     * remake.c (update_file_1): Set FILE's `updated' flag after calling
  2612.     remake_file if it failed or finished immediately.
  2613.  
  2614.     * remake.c (update_file): Use the `updated' flag rather than the
  2615.     command state to decide if a file was fully considered, and
  2616.     therefore might give an "up to date" message.
  2617.  
  2618.     * variable.c (expand_function): Made all functions that take more
  2619.     than one argument count parens of the appropriate flavor in their
  2620.     args and ignore commands nested in parens.
  2621.  
  2622. Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2623.  
  2624.     * read.c (read_all_makefiles): Pass second arg to read_makefile for
  2625.     default makefiles.
  2626.  
  2627. Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2628.  
  2629.     * Version 3.13.
  2630.  
  2631.     * GNUmakefile: Added an explicit rule for make.dvi since the
  2632.     built-in .texinfo.dvi implicit rule is screwed up.
  2633.  
  2634.     * rule.c (default_suffix_rules): Added a comment that the
  2635.     .texinfo.dvi rule does not work because of an ahem, feature of Make
  2636.     that at some point will be fixed--er, enhanced to alleviate this
  2637.     difficulty.
  2638.  
  2639.     * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
  2640.  
  2641.     * make.texinfo (Commands: Execution): Documented new competing for
  2642.     standard input among children.
  2643.  
  2644.     * commands.c (struct child): Added `good_stdin' flag to tell if this
  2645.     child has the stdin that doesn't point into nirvana.
  2646.     (good_stdin_used): New variable to tell if any child has the good
  2647.     standard input.
  2648.     (child_handler): Reset `good_stdin_used' if a dead child's
  2649.     `good_stdin' flag is set.
  2650.     (start_job): Give the new child the good standard input if
  2651.     `good_stdin_used' is no set, and set the child's `good_stdin' flag
  2652.     appropriately.
  2653.  
  2654.     * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
  2655.     better (I hope).
  2656.  
  2657.     * read.c (read_all_makefiles): Stop reading default makefiles after
  2658.     one is found.
  2659.  
  2660.     * read.c (read_makefile): Reset `reading_filename' and
  2661.     `reading_lineno_ptr' after recursing for an included makefile.
  2662.  
  2663.     * GNUmakefile: New GNU Make-specific makefile that does everything
  2664.     Makefile does plus distribution stuff, and doesn't contain any hacks
  2665.     to try to work with Unix make.
  2666.  
  2667.     * Makefile: Removed distribution stuff.
  2668.  
  2669.     * make.c (main): Use mktemp to construct the names of temporary
  2670.     files used for standard input makefiles.
  2671.  
  2672.     * make.c (main): Don't turn standard input into a broken pipe.
  2673.  
  2674.     * commands.c (start_job): Keep two extra file descriptors around: a
  2675.     good standard input, and a bad one that reads from a broken pipe.
  2676.     On the child side of the fork, if there are other children, give
  2677.     this one the broken pipe so they won't compete; if this is the only
  2678.     one, give it the good standard input.
  2679.  
  2680.     * make.h: Declare notice_finished_file.
  2681.  
  2682.     * commands.c (execute_file_commands): Use noticed_finished_file
  2683.     after waiting for the child when there is only one job slot.
  2684.  
  2685.     * remake.c (notice_finished_file): New function to re-check mtime's
  2686.     and such things to be done when commands finish.
  2687.     (update_file_1): Use notice_finished_file.
  2688.  
  2689.     * commands.c (child_handler, execute_file_commands): Use new
  2690.     variable `job_slots_used' to record the number of jobs currently
  2691.     running, rather than diddling with `job_slots'.
  2692.     (execute_file_commands): Increment `job_slots_used' before calling
  2693.     start_job and decrement it on failure to avoid race condition.
  2694.     If there is only one job slot, wait for the child to finish and
  2695.     return its status so commands are run in linear order, as if there
  2696.     were no parallelism.
  2697.  
  2698. Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2699.  
  2700.     * remake.c (remake_file): Don't print a "No way to make" message for
  2701.     targets whose `dontcare' flags are set.
  2702.  
  2703.     * read.c (read_all_makefiles): Set the `dontcare' flag of the
  2704.     `struct file' each default makefile added to the chain.
  2705.  
  2706.     * file.h (struct file): Add `dontcare' member.
  2707.  
  2708.     * read.c (read_all_makefiles): When no default makefiles are found,
  2709.     put the names of all those tried in the `read_makefiles' chain so
  2710.     they will be updated if possible, giving their `struct dep's'
  2711.     `changed' members the value of 0 so we won't care if they cannot be
  2712.     found or remade.
  2713.  
  2714.     * make.texinfo (Makefiles: Remaking Makefiles): Documented that
  2715.     default makefiles will be remade if not found.
  2716.  
  2717.     * read.c (read_all_makefiles): If no default makefiles can be found,
  2718.     go through the list of default names, trying to make one, stopping
  2719.     if one is made.
  2720.  
  2721.     * remake.c (remake_file): Set STATUS to 0 after successfully touching.
  2722.  
  2723.     * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
  2724.     to "" and then try to to a strcmp on it!!!
  2725.  
  2726. Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
  2727.  
  2728.     * make.c (main): Don't do `dir_load (".")'.
  2729.  
  2730.     * rule.c (count_implicit_rule_limits), vpath.c
  2731.     (construct_vpath_list): Test the existence of a given directory by
  2732.     `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
  2733.     it means the directory really does not exist.
  2734.  
  2735.     * dir.c (struct dirdata): Replaced with `struct directory' for
  2736.     directories, each containing a chain of `struct dirfiles', one for
  2737.     each file (real or impossible).
  2738.     (dir_load): Removed.
  2739.     (find_directory): New function to find the `struct directory' for a
  2740.     named directory and return it (possibly creating a new one).
  2741.     (dir_file_exists_p): Read the directory on the fly if its stream is
  2742.     still valid (and ever was) if the file we're looking for is not
  2743.     already in the hash tables.
  2744.     (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
  2745.     Use the new directory/file scheme.
  2746.  
  2747.     * make.texinfo: Miscellaneous editorial changes and clarifiactions.
  2748.  
  2749.     * commands.c (struct child): Remove `environ' member.
  2750.     (child_handler, start_job, execute_file_commands): Remove use of
  2751.     `environ' member and new_environ.
  2752.  
  2753.     * make.c (main): Call new_environ after reading makefiles.
  2754.  
  2755.     * variable.h: Declare `new_environ' to return void.
  2756.  
  2757.     * variable.c (new_environ): Put the environment in `environ' and
  2758.     return void.
  2759.  
  2760. Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2761.  
  2762.     * Version 3.12.
  2763.  
  2764.     * Makefile: Don't make the uncompressed tar file.
  2765.  
  2766.     * variable.c (expand_function: `shell' function): Made it not expect
  2767.     read to null-terminate the buffer.
  2768.  
  2769.     * Makefile: Made it use a temporary symlink to . rather than a
  2770.     temporary directory to make the distribution tar file.
  2771.  
  2772. Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2773.  
  2774.     * Version 3.11.
  2775.  
  2776.     * make.texinfo: Fixed a line that got garbaged somehow.
  2777.  
  2778. Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2779.  
  2780.     * make.c (main): Try to move back to the directory we started in
  2781.     before re-exec ourself.
  2782.  
  2783.     * remake.c (update_file_1): A double-colon target with no deps
  2784.     always needs to be remade.
  2785.  
  2786.     * remake.c (remake_file): Changed "No way to make" message to say
  2787.     `target' rather than `file'.
  2788.  
  2789. Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  2790.  
  2791.     * remake.c (update_file_1): Set FILE->update_status to the return
  2792.     value of remake_file.
  2793.  
  2794.     * rule.c (convert_to_pattern): Fixed swapped lengths passed to
  2795.     xmalloc for source/target suffixes.
  2796.  
  2797.     * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
  2798.     from makefiles.  Updated the `Features' section a bit.
  2799.  
  2800.     * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
  2801.     after reading in makefiles.
  2802.  
  2803.     * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
  2804.     /tmp/foo" in front of temp files made for stdin makefiles.
  2805.  
  2806.     * remake.c (update_file): Test the state of the right `struct file'
  2807.     for double-colon files.
  2808.  
  2809.     * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
  2810.     files made for stdin makefiles so they won't be remade when we
  2811.     re-exec.  Kludge-o-matic!!
  2812.  
  2813.     * remake.c (update_goal_chain): Judge files as being finished based
  2814.     on their `updated' flag, not their state.
  2815.  
  2816.     * read.c (read_makefile): Don't check for FILENAME being "-".
  2817.     (read_all_makefiles): Set each element of MAKEFILES to the name put
  2818.     in READ_MAKEFILES by read_makefile, since read_makefile may free the
  2819.     storage for the name it is passed, and someone might want to look at
  2820.     the elements of MAKEFILES again.
  2821.  
  2822.     * make.c (main): For each `-f' flag with arg `-' (standard input),
  2823.     read standard input into a temp file and pass the temp file's name
  2824.     to read_all_makefiles, after making sure it will not be remade.
  2825.  
  2826.     * make.c (construct_makeflags): Always put out `-j1'.
  2827.  
  2828. Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2829.  
  2830.     * commands.c (execute_file_commands): If commands are nothing but
  2831.     whitespace, set the state to `cs_finished' before returning 0.
  2832.  
  2833.     * make.c (decode_switches): Allocate space for args in stringlists
  2834.     so they can be freed later.
  2835.  
  2836.     * make.h: Declare `makelevel'.
  2837.  
  2838.     * variable.c (makelevel): Moved to make.c (and made global).
  2839.  
  2840.     * make.c (fatal, error): Print the makelevel if it's > 0.
  2841.     (perror_with_name): Use error rather than calling fprintf directly.
  2842.     (pfatal_with_name): Use fatal rather than fprintf and die.
  2843.  
  2844.     * variable.c (new_environ): Don't put default variables (origin
  2845.     `o_default') into the environment; they just take up space.
  2846.  
  2847.     * read.c (read_makefile): Don't add FILENAME to the chain of read
  2848.     makefiles if it's "-" (standard input).
  2849.  
  2850.     * remake.c (update_goal_chain): Set STATUS correctly when nothing
  2851.     happens (as well as in all other situations).
  2852.  
  2853.     * make.c (construct_makeflags): Put a `-' before each switch and
  2854.     spaces between them.
  2855.  
  2856.     * Version 3.10.
  2857.  
  2858.     * commands.c (wait_for_children): Don't check if `children' is nil.
  2859.     This is the case when waiting for the child of a `shell' function.
  2860.  
  2861.     * dir.c (dir_load): Don't add a hash-table entry for directory
  2862.     DIRNAME and filename "" if DIRNAME doesn't exist.
  2863.  
  2864.     * commands.c (execute_file_commands): Return 0 after start_job
  2865.     returns 1 (failure) under the -n flag.
  2866.  
  2867.     * remake.c (remake_file): Set the state to `cs_finished' when not
  2868.     calling execute_file_commands.
  2869.  
  2870.     * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
  2871.     meaning to disable -t, -q, and -n for each target unless the target
  2872.     was also given on the command-line.
  2873.  
  2874.     * read.c (read_makefile): Enter the `struct file's for the makefiles
  2875.     added to the `read_makefiles' `struct dep' chain.
  2876.  
  2877.     * remake.c (update_goal_chain): Made it not enter the files for the
  2878.     goals in the chain.  It will already have been done.
  2879.  
  2880.     * rule.c (convert_to_pattern): Null-terminate the names of targets
  2881.     and deps of the pattern rules properly.
  2882.  
  2883. Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  2884.  
  2885.     * make.c (main): Call install_default_pattern_rules.
  2886.  
  2887.     * make.h: Declare copy_dep_chain.
  2888.  
  2889.     * read.c (copy_dep_chain): Moved to make.c (and made global).
  2890.  
  2891.     * make.c (main): Call update_goal_chain to update goals.
  2892.     Update read makefiles and re-exec self if they change.
  2893.  
  2894.     * remake.c (update_file): Make this function static.
  2895.     (update_goal_chain): New function to update a `struct dep' chain of
  2896.     goals, waiting until they are all finished before returning.
  2897.  
  2898.     * make.h: Don't declare update_file.  Declare update_goal_chain.
  2899.  
  2900.     * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
  2901.  
  2902.     * read.c (find_makefile): Removed this function.
  2903.     (read_all_makefiles): Don't update makefiles, don't diddle with
  2904.     pattern rules, don't call snap_deps, etc.  Return a `struct dep'
  2905.     chain of all makefiles read.
  2906.     (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
  2907.     for a normal makefile, 1 for MAKEFILES variable or 2 for an included
  2908.     makefile.  Add a `struct dep' containing the name of the makefile
  2909.     (as it was found in the search path for type 2s), and TYPE in the
  2910.     `changed' member to the global `read_makefiles' chain.
  2911.  
  2912.     * make.h, rule.c (displace_pattern_rules,
  2913.     add_displaced_pattern_rules): Removed these functions.
  2914.  
  2915.     * read.c (read_makefile): Variable-expand the name of an `include'd
  2916.     makefile before calling find_makefile on it.
  2917.  
  2918.     * file.c (snap_deps): If the `struct file' for a `struct dep'
  2919.     already exists, free the `struct dep's `name' member before setting
  2920.     it to nil (since this info is in the `struct file').
  2921.  
  2922.     * read.c (copy_dep_chain): Made it copy each name rather than
  2923.     leaving multiple `struct dep's with the same pointers.
  2924.  
  2925. Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  2926.  
  2927.     * make.c (decode_switches): Fixed second decode_env_switches call to
  2928.     use correct length of "MFLAGS" (6, not 5).
  2929.  
  2930.     * read.c (read_makefile): Don't stop reading when readline returns
  2931.     zero lines read.  Only stop when the stream reaches EOF.  This makes
  2932.     it recognize the last line of a makefile without a newline.
  2933.  
  2934.     * remake.c (remake_file): If we don't know how to make FILE, set its
  2935.     command state to `cs_finished'.
  2936.  
  2937.     * remake.c (update_file): Don't write the "up to date" message if
  2938.     update_file_1 returned a nonzero status.
  2939.  
  2940. Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  2941.  
  2942.     * commands.c (child_handler): Set the `update_status' member
  2943.     properly for ignored errors.
  2944.  
  2945.     * rule.c (convert_to_pattern): Made it not care about if the target
  2946.     suffix comes before the source suffix in the .SUFFIXES list.
  2947.  
  2948.     * make.texinfo: Misc editorial changes.
  2949.  
  2950.     * commands.c (wait_for_children): Return immediately if `children'
  2951.     is nil (there are no children).
  2952.  
  2953. Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2954.  
  2955.     * Version 3.09.
  2956.  
  2957.     * commands.c (struct child): New member `command_ptr' to hold the
  2958.     current position in the commands.  The `commands' member is never
  2959.     changed.
  2960.     (start_job, child_handler, execute_file_commands): Use new method
  2961.     for `commands' and `command_ptr' members.
  2962.  
  2963.     * make.c (decode_env_switches): Skip past an invalid letter (instead
  2964.     of looping forever).
  2965.  
  2966.     * commands.c (struct child): Add `environ' member to hold the
  2967.     environment for this child.
  2968.     (execute_file_commands): Get a new environment from new_environ and
  2969.     put in the the new `struct child's `environ' member.
  2970.     (child_handler): When freeing a child, free its `commands' member, the
  2971.     elements of its `environ' array and its `environ' member itself.
  2972.     (start_job): Set `environ' to the child's `environ' member before
  2973.     exec'ing the command.
  2974.  
  2975.     * variable.h, variable.c (new_environ): Made it return the new
  2976.     environment, not putting it in `environ'.
  2977.  
  2978.     * remake.c (update_file): Don't give a "is up to date" message
  2979.     unless no files were remade and the state went from `cs_not_started'
  2980.     to `cs_finished', so repeat calls to finish jobs won't get the message.
  2981.  
  2982. Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2983.  
  2984.     * Version 3.08.
  2985.  
  2986.     * make.texinfo (Commands: Execution): Documented that children will
  2987.     be waited for rather than killed.
  2988.  
  2989.     * commands.c (fatal_error_signal): Wait for children.
  2990.     (kill_children): Removed this function.
  2991.  
  2992.     * make.c (main, die): Wait for children to die, don't kill them.
  2993.  
  2994.     * variable.c (expand_function): Use wait_for_children.
  2995.  
  2996.     * make.c (main): Use wait_for_children rather than child_handler.
  2997.  
  2998.     * commands.c (wait_for_children): New function to block waiting for
  2999.     children, insuring that child_handler is not called recursively.
  3000.     (execute_file_commands, kill_children): Use wait_for_children.
  3001.  
  3002.     * commands.c (child_handler): Start up additional commands in a
  3003.     sequence after an ignored error.
  3004.  
  3005.     * remake.c (update_file): Don't print "`foo' is up to date" messages
  3006.     when update_file_1 returns while commands are executing.
  3007.  
  3008.     * remake.c (update_file_1): Pass the file name to name_mtime, not
  3009.     the bloody `struct file', dammit!!
  3010.  
  3011.     * commands.c (child_handler): Print out the "*** ..." error message
  3012.     when not under -i.  (I somehow forgot this.)
  3013.  
  3014.     * remake.c (update_file_1): Use name_mtime rather than file_mtime to
  3015.     re-get the mtime of a file whose commands have finished.
  3016.  
  3017.     * make.c (command_switches, decode_switches, decode_env_switches):
  3018.     Make all switches that take string args allow them right after the
  3019.     switch letter.
  3020.  
  3021.     * commands.c (child_handler): Check for a child being the `shell'
  3022.     function's command returning and set the global variable for
  3023.     expand_function to check.
  3024.  
  3025.     * variable.c (expand_function): For the `shell' function, instead of
  3026.     waiting for the child shell ourselves, let child_handler do it and
  3027.     loop around waiting for something to happen.
  3028.  
  3029.     * make.c (print_version): Made the copyright year static, not dynamic.
  3030.  
  3031.     * make.h, make.c: Remove construct_argv function.
  3032.  
  3033.     * make.c (main): Say "no goal target" instead of "no target".
  3034.  
  3035.     * make.texinfo (Commands: Parallel): Don't send SIGKILL.
  3036.  
  3037.     * commands.c (kill_children): Don't send SIGKILL to children that
  3038.     aren't killed by the first signal.
  3039.  
  3040.     * make.c (main), commands.c (kill_children): Decide between SIGCHLD
  3041.     and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
  3042.  
  3043.     * Makefile: Link make with $(LOADLIBES).
  3044.  
  3045.     * read.c (construct_include_path): Fixed another bad xrealloc call.
  3046.  
  3047.     * make.c (decode_switches): Fixed an xrealloc call with no first arg.
  3048.  
  3049. Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3050.  
  3051.     * Version 3.07.
  3052.  
  3053.     * remake.c (update_file_1): If deps are running, set state to
  3054.     `cs_deps_running' and return 0.  If deps are done, run commands.
  3055.  
  3056.     * commands.c (child_handler): Made it delete non-precious targets
  3057.     killed by fatal signals.
  3058.  
  3059.     * make.texinfo: Documented parallelism.
  3060.  
  3061. Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3062.  
  3063.     * remake.c (update_file_1): Don't return if FILE's state is
  3064.     `cs_deps_running'.  In that case, we need to run through and check
  3065.     the states of all our dependencies.
  3066.  
  3067.     * commands.c (execute_file_commands): Decrement `job_slots' after
  3068.     starting a new job to run file commands.
  3069.  
  3070.     * commands.c (start_job): Made it set the state to `cs_running'.
  3071.  
  3072.     * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
  3073.     goal-making loop.
  3074.  
  3075.     * commands.c (child_handler): When commands finish, set the
  3076.     corresponding file's `update_status' and `updated' flags as
  3077.     appropriate, and reset the modtimes of the file and any `also_make'
  3078.     files it has.
  3079.  
  3080.     * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
  3081.  
  3082.     * commands.c (fatal_error_signal): Don't swallow all the children
  3083.     with a loop around `wait ((union wait *) 0)'!!!
  3084.  
  3085.     * make.c (struct command_switch): Added `positive_int' type.
  3086.     (switches): Added -j (job_slots).
  3087.     (construct_makeflags, decode_switches, decode_env_switches):
  3088.     Handle`positive_int'-type switches.
  3089.  
  3090.     * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
  3091.     This is said to avoid a conflict with some system's global `vector'
  3092.     variable.
  3093.  
  3094.     * variable.c (expand_function): Made the `shell' function use
  3095.     construct_command_argv and do its own child control and piping.
  3096.  
  3097.     * make.c (main): Turn standard input into a broken pipe after
  3098.     reading in all makefiles (the last time it will be needed).
  3099.  
  3100.     * commands.c (struct child): Remove `pipe_fd' member.  We don't use
  3101.     pipes any more.
  3102.     (start_job): Return 0 for success, 1 or failure (rather than void).
  3103.     Don't use pipes.  Don't turn the child's stdin into a broken pipe.
  3104.     (child_handler): Print "*** Error" messages when necessary.
  3105.     Die on failed commands when -k was not given.
  3106.     (execute_file_commands): Check the return of start_job and remove
  3107.     the child from the chain and return failure if it is nonzero.
  3108.  
  3109.     * make.c (die): New function to clean up and exit.
  3110.     (fatal, pfatal_with_name): Use die.
  3111.  
  3112. Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3113.  
  3114.     * commands.c (struct child): Added `commands', `pipe_fd', and
  3115.     `noerror' members to keep track of info about a command thread.
  3116.     (start_job): New function to start a job and update the argument
  3117.     `struct child' to reflect its status.
  3118.     (execute_file_commands): Merged run_file_commands back in.
  3119.     Made it use new start_job function.
  3120.  
  3121.     * rule.c (freerule): Don't free the `struct commands' of the
  3122.     discarded rule.  It may be used in more than one place.
  3123.  
  3124.     * commands.c (execute_command_line): Made it not try to delete the
  3125.     possibly partly-made file.  The child_handler function will do this.
  3126.     (fatal_error_signal): Ditto + call kill_children.
  3127.  
  3128.     * make.h: Declare job_slots.
  3129.  
  3130.     * make.c (main): Collect goals in a dep chain and run through this
  3131.     chain waiting for a child, eliminating finished goals, updating all
  3132.     remaining goals, and quitting if they fail and not -k.
  3133.  
  3134.     * commands.c (child_handler): If called with SIG < 0, - SIG is the
  3135.     max number of children to bury.
  3136.  
  3137.     * commands.c (child_handler): If called with SIG as zero,
  3138.     block waiting for running children.
  3139.     (kill_children): Call child_handler with zero rather than SIGCHLD.
  3140.  
  3141.     * remake.c (update_file_1): Use the `command_state' member of FILE
  3142.     and its dependencies to determine what commands are running, what to
  3143.     do, etc.  If commands or dep commands are running when we are
  3144.     called, return success (0).  If commands finished since the last
  3145.     time we were called, return their status.
  3146.  
  3147.     * commands.h: Declare kill_children.
  3148.  
  3149.     * commands.c: Define `struct child' to keep track of child
  3150.     processes, with the chain in `children'.
  3151.     (child_handler): New function to catch child-termination signals
  3152.     (SIGCHLD, or SIGCLD for USG), store the returned status in the
  3153.     appropriate structure, take the now-obsolete `struct child' out of
  3154.     the chain, and free its storage.
  3155.     (execute_file_commands): Put all of the stuff invloving running the
  3156.     commands into new function run_file_commands.  Execute_file_commands
  3157.     now does process management for the commands, while
  3158.     run_file_commands (which is run in a subprocess) runs the commands.
  3159.     (kill_children): New function to kill all running children by
  3160.     sending them signal SIG.  If there are any children still living
  3161.     after they are all sent SIG, they are all sent SIGKILL.
  3162.  
  3163.     * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
  3164.  
  3165.     * commands.h: Declare child_handler function.
  3166.  
  3167.     * commands.c (execute_file_commands): Check the `command_state'
  3168.     member of FILE and return 0 if it is `cs_running' or
  3169.     `cs_deps_running' and return the stored status if it is `cs_finished'.
  3170.  
  3171.     * file.h (struct file): Added `command_state' member.
  3172.  
  3173.     * commands.c (execute_command_line): Add `$' to the list of
  3174.     characters special to the shell.
  3175.  
  3176. Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3177.  
  3178.     * read.c (read_all_makefiles): Call convert_to_pattern before
  3179.     recomputing the limits after adding the displaced rules.
  3180.  
  3181.     * make.c (main): Move calls to snap_deps, convert_to_pattern, and
  3182.     build_vpath_lists to read_all_makefiles.
  3183.  
  3184.     * read.c (read_all_makefiles): Install the default pattern rules
  3185.     before checking to remake the makefiles, displace these rules before
  3186.     reading in the makefiles, and then add the displaced rules to the
  3187.     chain after reading in all the makefiles.
  3188.  
  3189.     * make.c (main): Don't call install_default_pattern_rules or
  3190.     count_implicit_rule_limits.
  3191.  
  3192.     * make.h: Declare displace_pattern_rules and
  3193.     add_displaced_pattern_rules.
  3194.  
  3195.     * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
  3196.     functions to stow the chain and add the stowed chain on the end of
  3197.     the current chain.
  3198.  
  3199.     * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
  3200.  
  3201.     * make.c (main): Call construct_include_path right after decoding
  3202.     the switches.
  3203.  
  3204.     * read.c (find_makefile): Use rename_file.
  3205.  
  3206.     * file.h: Declare rename_file.
  3207.  
  3208.     * file.c (rename_file): New function to rename a `struct file' and
  3209.     put it in the correct hash bucket.
  3210.  
  3211.     * read.c (find_makefile): New function to find and update a makefile.
  3212.      (read_all_makefilese): Use find_makefile.
  3213.      (read_makefile): Don't do updating.  Removed UPDATEIT arg.
  3214.  
  3215.     * remake.c (update_file_1): Took out setting the `updated' member to
  3216.     -1 rather than 1 sometimes.
  3217.  
  3218.     * make.c (main): Made it print version info before doing anything else.
  3219.  
  3220.     * remake.c (library_file_mtime, f_mtime): Removed use of last two
  3221.     arguments to vpath_search.
  3222.  
  3223.     * rule.c (pattern_search): Removed use of last two arguments
  3224.     to vpath_search.
  3225.  
  3226.     * vpath.c (vpath_search, selective_vpath_search): Removed unused
  3227.     DIRPREFIX and DPLEN args.
  3228.  
  3229.     * read.c (read_makefile): Also turn off -n when updating makefiles.
  3230.  
  3231. Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3232.  
  3233.     * Makefile: Put tags files in the tarfile.
  3234.  
  3235.     * read.c (read_makefile): Get the modtime of the makefile via a stat
  3236.     call so that a later file_mtime call won't do VPATH search for it.
  3237.  
  3238.     * read.c (read_makefile): Don't turn off -t and -q if the makefile
  3239.     was a command-line target.
  3240.  
  3241.     * make.c (main): Enter command-line targets as files and set their
  3242.     `cmd_target' members.
  3243.  
  3244.     * file.h (struct file): Added `cmd_target' member.
  3245.  
  3246.     * read.c (read_makefile): Temporarily turn off -t and -q while
  3247.     updating makefiles.
  3248.  
  3249.     * make.c (main): Don't use arg 0 from other_args (which is now
  3250.     argv[0]; i.e., the program's name).
  3251.  
  3252.     * read.c (read_makefile): Only return nonzero if commands were
  3253.     actually run to remake the makefile.
  3254.  
  3255.     * remake.c (update_file_1): Set FILE->updated to -1 if no commands
  3256.     were actually run (because no update was done or -t was given).
  3257.  
  3258.     * make.c (decode_switches): Fixed bug wherein xrealloc was passed
  3259.     bad args if it tried to expand other_args->list.
  3260.  
  3261.     * read.c (read_all_makefiles): Made it not look at the `MAKE'
  3262.     variable, just use argv[0].
  3263.  
  3264. Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3265.  
  3266.     * read.c (rerun_make): New function to re-exec make.
  3267.  
  3268.     * make.c (construct_makeflags, construct_argv): New functions to
  3269.     construct the `MAKEFLAGS' variable and to construct an arg list from
  3270.     parsed info.
  3271.  
  3272.     * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
  3273.     update the makefile as a target before reading it in.  When reading
  3274.     included makefiles, pass this as zero.  Now returns nonzero if the
  3275.     makefile was updated, zero if not.
  3276.     (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
  3277.     for all default and -f makefiles and all makefiles from the
  3278.     `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
  3279.     self to re-read them.
  3280.  
  3281.     * remake.c (update_file): Print a "File `foo' up to date'" message
  3282.     under -p.
  3283.  
  3284.     * commands.c (execute_file_commands): Allocate one byte for each of
  3285.     $^ and $< rather than zero if they are to be empty.
  3286.  
  3287. Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3288.  
  3289.     * Version 3.06.
  3290.  
  3291.     * make.c (command_switches): Fixed entry for `-o' switch.
  3292.  
  3293.     * make.texinfo: Renamed -c switch to -C.
  3294.  
  3295.     * make.c: Renamed -c switch to -C.
  3296.  
  3297.     * Miscellaneous de-linting.
  3298.  
  3299.     * read.c (record_files): Made it not free the storage for the name
  3300.     if it started with `./' and was therefore not quite the same as in
  3301.     the `struct file'.
  3302.  
  3303.     * read.c (record_files): If commands were specified twice, the error
  3304.     message specifies in what files and at what line numbers.
  3305.  
  3306.     * make.c (main): If any of the signals we usually fatal on were
  3307.     ignored by the parent (probably a shell), ignore them.
  3308.  
  3309.     * make.c (main): Print version info for -v, -p, or -d.
  3310.     (print_data_base): Don't print version info.  It will be done in main.
  3311.  
  3312.     * variable.c: Increased number of hash buckets to 257.
  3313.  
  3314.     * file.c: Increased number of hash buckets to 1007.
  3315.  
  3316.     * rule.c (count_implicit_rule_limits): Moved comptation of
  3317.     `maxsuffix' to convert_to_pattern, since that function uses
  3318.     `maxsuffix', and must be called before count_implicit_rule_limits.
  3319.  
  3320.     * rule.c (pattern_search): If an existent (non-intermediate)
  3321.     dependendency was found via a terminal rule, set its
  3322.     `tried_implicit' flag, so it will never have implicit rule search done.
  3323.  
  3324.     * glob.c: Bug fix to avoid alloca(0).
  3325.  
  3326.     * arscan.c: USG and Sun386i fixes.
  3327.  
  3328. Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3329.  
  3330.     * make.texinfo: Fixed some typos and spelling errors.
  3331.  
  3332. Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3333.  
  3334.     * make.c (decode_switches): Fixed bug wherein a bad option would
  3335.     give a useless error message and loop forever.
  3336.  
  3337. Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3338.  
  3339.     * make.texinfo: Documented `shell' function.
  3340.  
  3341.     * variable.c (expand_function): New function `shell', does
  3342.     backquote-style command expansion of its arg.
  3343.  
  3344.     * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
  3345.     gets filled in with a malloc'd buffer containing the piped stdout of
  3346.     the command.
  3347.     (execute_file_commands): Use above (pass nil).
  3348.  
  3349. Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3350.  
  3351.     * Makefile: Added copyright notice.
  3352.     Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
  3353.  
  3354.     * Version 3.05.
  3355.  
  3356.     * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
  3357.     switches if `NO_MINUS_C_MINUS_O' is #define'd.
  3358.  
  3359.     * make.texinfo: Documented `GNUmakefile'.
  3360.  
  3361.     * read.c (read_all_makefiles): Made it try default makefile
  3362.     `GNUmakefile' before others.
  3363.  
  3364.     * make.texinfo: Added new-style Texinfo header thingies.
  3365.  
  3366. Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3367.  
  3368.     * Version 3.04.
  3369.  
  3370.     * make.texinfo (Chained Rules): Added a @cindex about using
  3371.     .PRECIOUS to preserve intermediate files.
  3372.  
  3373.     * remake.c (update_file_1): Made it not just return before executing
  3374.     commands under -p.
  3375.  
  3376.     * rule.c (default_pattern_rules, default_variables): Made it use
  3377.     `$(AR)' for `ar r' (to put files in archives).
  3378.  
  3379.     * vpath.c (build_vpath_lists): Made it recursively expand the
  3380.     `VPATH' variable (by using variable_expand instead of lookup_variable).
  3381.  
  3382.     * read.c (conditional_line): Made it not swallow whitespace after
  3383.     the comma in an `ifeq' using the `(a,b)' syntax.
  3384.  
  3385.     * rule.c (count_implicit_rule_limits): Made it not crash if a
  3386.     pattern rule dep begins with `/'.
  3387.  
  3388. Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3389.  
  3390.     * make.texinfo: Clarified that the arg to the `origin' function is a
  3391.     variable *name*, not a reference.
  3392.  
  3393.     * make.texinfo: Clarified that both -Idir and -I dir are allowed.
  3394.  
  3395. Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3396.  
  3397.     * remake.c (remake_file): Made touching phonies work right.
  3398.  
  3399. Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  3400.  
  3401.     * make.texinfo: Removed reference to `RANLIB' variable.
  3402.  
  3403.     * Version 3.03.
  3404.  
  3405.     * variables.c (expand_function): Added `origin' function.
  3406.     * make.texinfo: Documented same.
  3407.  
  3408.     * read.c (record_files): Made double-colon entries work.
  3409.  
  3410. Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3411.  
  3412.     * make.c (collapse_continuations): Bug fix from RMS.
  3413.  
  3414.     * rule.c (install_default_pattern_rules): Made it set the
  3415.     `in_use' flag of the created rules to zero, rather than letting
  3416.     it be random garbage.
  3417.  
  3418.     * rule.c (pattern_search): Fixed putting `also make' targets into
  3419.     file strucutres.
  3420.  
  3421.     * read.c (record_files): Fixed bug which made double-colon entries
  3422.     make it read off into space.
  3423.  
  3424.     * make.c (decode_switches): Made it understand `ignored' switches
  3425.     rather than dumping core.
  3426.  
  3427. Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3428.  
  3429.     * read.c (read_makefile): Made `include' filenames be
  3430.     variable-expanded.
  3431.  
  3432.     * read.c (read_makefile): Fixed an error message.
  3433.  
  3434.     * read.c (read_makefile): Made it accept ^L's as whitespace.
  3435.     * make.c (next_token, end_of_token): Ditto.
  3436.  
  3437.     * vpath.c (vpath_search): Fixed it so that the general VPATH (from
  3438.     the variable) is always checked, even if a selective VPATH (from a
  3439.     directive) matched the filename.
  3440.  
  3441. Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3442.  
  3443.     * make.c (decode_switches, main): Made the command switches be
  3444.     processed from a table of switches, variables, and types.  No
  3445.     functions are passed argc and argv any more.  They are passed arrays
  3446.     of strings they need to process.
  3447.     * read.c (read_all_makefiles): Made it take an array rather than
  3448.     argc and argv.
  3449.     (construct_include_path): Ditto.
  3450.  
  3451.     * make.c (collapse_continuations): Made it work right (I hope).
  3452.  
  3453.     * make.texinfo: Minor editorial changes.
  3454.  
  3455.     * read.c (read_makefile): Minor speed improvement by freeing and
  3456.     then mallocing something rather than reallocing it to avoid the
  3457.     unnecessary bcopy.
  3458.  
  3459. Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3460.  
  3461.     * make.texinfo: Fixed some unquoted @'s.
  3462.  
  3463.     * make.texinfo: Documented multiple-target pattern rules.
  3464.     Miscellaneous minor editorial changes and corrections.
  3465.  
  3466.     * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
  3467.     variables.  That's what the next section is for.
  3468.     (Implicit: Implicit Variables): Made it agree with reality.
  3469.  
  3470. Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3471.  
  3472.     * variable.c (print_variable_data_base): Fixed bug which made -p
  3473.     dump core.  (This was a really idiotic bug.)
  3474.  
  3475.     * rule.c (pattern_search): Fixed a bug which made it make the
  3476.     `also_make' member of the file in question nil if the first of
  3477.     the successful rule's targets was the matching one.
  3478.     Made it use only as much storage as necessary in the `also_make'
  3479.     member.
  3480.     (create_pattern): Made it use only as much storage as necessary in
  3481.     the `lens' and `suffixes' members of the created rule.
  3482.  
  3483.     * remake.c (library_file_mtime): Made it `static'.
  3484.  
  3485.     * file.c: Added a declaration for `errno', which is declared in some
  3486.     <errno.h>'s, but not all.
  3487.  
  3488.     * file.h (struct file): Added `also_make' member for multiple-target
  3489.     implicit rules.
  3490.     * rule.c (pattern_search): Made it put the names of files updated by
  3491.     the given file's commands in its `also_make' member.
  3492.     * remake.c (update_file_1): Made it mark the files in a file's
  3493.     `also_make' member as updated when the file is updated.
  3494.  
  3495.     * variable.c (try_variable_definition): Fixed a bug which made it
  3496.     define a variable with the name of the whole definition when there
  3497.     was no space before the = or :=.
  3498.  
  3499.     * make.texinfo (Features): Made the changes which were made in RCS
  3500.     revision 2.7 but somehow lost since then.  Added -W.
  3501.  
  3502. Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3503.  
  3504.     * variable.h: Added `o_default' to `enum variable_origin'.
  3505.     * variable.c (print_variable_data_base): Made it print the origins of
  3506.     the variables.
  3507.     * rule.c (install_default_pattern_rules): Made it define the default
  3508.     variables with origin `o_default'.
  3509.  
  3510.     * make.texinfo: Documented -W.
  3511.  
  3512.     * make.c (decode_switches, main): Added the -W flag to give files a
  3513.     time-stamp of now, for a `what if' effect when used with -n.
  3514.  
  3515.     * commands.c (print_commands): Made it say `(built-in)' for commands
  3516.     that are built into the default ruleset.
  3517.  
  3518.     * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
  3519.     * rule.c (set_default_suffixes, convert_to_pattern): Made it read
  3520.     .SUFFIXES's deps frontwards, so the converted rules will not be in
  3521.     reverse order.
  3522.  
  3523.     * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
  3524.     searching after it had removed a matching rule and ended up diddling
  3525.     with freed storage.
  3526.  
  3527.     * rule.c (freerule): Made it take the given rule off the chain.
  3528.     (new_pattern_rule, count_implicit_rule_limits): Use freerule to
  3529.     remove rules from the chain.
  3530.  
  3531.     * vpath.c (construct_vpath_list): Made it return after cleaning out
  3532.     all previous searchpaths when given a nil DIRPATH arg, so it won't
  3533.     go into the construction code and dump core dereferencing a nil
  3534.     pointer.
  3535.  
  3536.     * variable.c (patsubst_expand): Fixed a bug which made it not match
  3537.     correctly and sometimes dump core.
  3538.  
  3539. Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3540.  
  3541.     * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
  3542.     the files used in the comparison to determine whether or not a
  3543.     second TeX run is necessary.
  3544.  
  3545.     * make.texinfo: Fixed some overfull TeX hboxes.
  3546.  
  3547.     * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
  3548.  
  3549.     * rule.c (create_pattern_rule): Fixed bug wherein index was not
  3550.     being passed its second arg.
  3551.  
  3552.     * read.c (getline): Merged back into readline.
  3553.  
  3554.     * rule.c (default_suffixes, default_suffix_rules,
  3555.     default_variables): Added .texinfo.info rule.
  3556.     * make.texinfo (Implicit: Catalogue of Rules): Documented
  3557.     .texinfo.dvi and .texinfo.info rules.
  3558.  
  3559.     * make.texinfo (Top): Changed `last updated' date to be correct (for
  3560.     the last time it was updated, not today).  Changed `for version
  3561.     3.00' since it's not going to be called that.
  3562.  
  3563. Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3564.  
  3565.     * commands.c (print_commands): Added this function to print the
  3566.     contents of a `struct commands' for -p.
  3567.     * rule.c (print_rule_data_base): Use above.
  3568.     * file.c (print_file_data_base): Ditto.
  3569.  
  3570.     * rule.c (count_implicit_rule_limits, new_pattern_rule,
  3571.     install_pattern_rule, print_rule_data_base): Made it understand the
  3572.     changed `struct rule' and act accordingly.
  3573.     (freerule): Added this function to free all the storage used by a rule.
  3574.  
  3575.     * rule.c (pattern_search): Made it grok multiple targets of pattern
  3576.     rules.  The matching is done properly, but at present, only the
  3577.     matching pattern's target is used to give deps and commands.
  3578.  
  3579. Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3580.  
  3581.     * rule.c (struct rule): Changed name, namelen, and patsuffix members
  3582.     to targets, lens, and suffixes, which are arrays, for multiple targets.
  3583.     (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
  3584.     array of targets, rather than a single target and patsuffix pointer.
  3585.  
  3586.     * read.c (record_files): If it finds an implicit pattern rule, it
  3587.     collects all the targets into an array and passes the whole thing to
  3588.     create_pattern_rule.  If there are non-pattern targets, it is a
  3589.     fatal error.
  3590.  
  3591. Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3592.  
  3593.     * make.c (readline): Split backslash-newline checking from reading
  3594.     and buffer-expanding.
  3595.     (getline): Created to do the reading and buffer-expanding formerly
  3596.     done in readline.
  3597.  
  3598.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  3599.     rules when a specific rule has matched, rather than rejecting
  3600.     terminal match-anything rules in this case.
  3601.  
  3602.     * rule.c (convert_to_pattern): Fixed a bug caused when the change to
  3603.     make it only recognize two-suffix rules whose target suffixes
  3604.     precede their dependency suffixes which made it work in the opposite
  3605.     direction (even worse than it started out).
  3606.  
  3607.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  3608.     rules as intermediate targets when searching for both real and
  3609.     intermediate dependencies, rather than only when searching for
  3610.     intermediate ones.
  3611.  
  3612. Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3613.  
  3614.     * rule.c (convert_to_pattern): Made it only recognize two-suffix
  3615.     rules whose target suffix comes before the dependency suffix in the
  3616.     .SUFFIXES list.
  3617.  
  3618.     * variable.c (define_automatic_variables): Made all automatic
  3619.     variables be defined with origin `o_automatic'.
  3620.  
  3621.     * variable.h: Added `o_automatic' to `enum variable_origin'
  3622.  
  3623.     * file.c (remove_intermediates): Made it not print an error message
  3624.     if the error was that the file does not exist.
  3625.  
  3626.     * rule.c: Removed `recursive' member from `struct rule'.
  3627.  
  3628.     * remake.c (library_file_mtime): Made it not use the directory hash
  3629.     functions, as reading in and hashing /usr/lib and /lib is slow and
  3630.     most likely unnecessary.
  3631.  
  3632.     * remake.c (remake_file): Changed message from ``No specification
  3633.     for making'' to ``No way to make'' so it will be short enough that
  3634.     most filenames will fit on a line.
  3635.     Made it look at the `recursive' member of the `struct commands',
  3636.     rather than of the `struct file' (which no longer has one).
  3637.  
  3638.     * commands.c (execute_file_commands): Made it look at the
  3639.     `recursive' member of the `struct commands', rather than of the
  3640.     `struct file' (which no longer has one).
  3641.  
  3642.     * file.h: Removed `recursive' member from `struct file'.
  3643.  
  3644.     * commands.h: Added `recursive' member to `struct commands'.
  3645.  
  3646.     * dep.h: Removed unused `quotedparen' member from `struct nameseq'
  3647.     and `struct dep'.
  3648.  
  3649.     * read.c (dequote): Removed this function.
  3650.     (multi_glob): Removed reference to `quotedparen' member of
  3651.     a `struct nameseq' and calls to dequote.
  3652.  
  3653.     * read.c (record_files): Made it set the stem for $* for all static
  3654.     pattern rules, not just those with commands given at that time.
  3655.     Removed check for recursive commands.
  3656.     Made it check for pairs of .SUFFIXES dependencies to reject as
  3657.     default goals as well as single ones (that don't start with dots).
  3658.     (read_makefile): Added checks for recursive commands to set
  3659.     the `recursive' flag in the `struct commands'.
  3660.  
  3661. Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3662.  
  3663.     * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
  3664.  
  3665.     * make.c: Removed `files_made' variable which is defined static in
  3666.     remake.c and used only there.
  3667.     (main): Cleaned up somewhat.
  3668.     (decode_switches): Cleaned up a bit.  Made an unknown option be a
  3669.     non-fatal error.
  3670.     (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
  3671.     (print_version): Made it say ``see the source'' rather than ``see
  3672.     the source file'', since there is more than one.
  3673.  
  3674.     * file.h: Made `num_intermediates' declared unsigned.
  3675.  
  3676.     * file.c: Made `num_intermediates' variable unsigned.
  3677.     (remove_intermediates): Removed unused FORMAT arg.
  3678.     (enter_file): Made it handle double-colon files properly, adding the
  3679.     new entry as the old entry's prev pointer.
  3680.  
  3681.     * dir.c: Re-indented the `struct dir' definition to be right.
  3682.     (dir_load): Cleaned up slighty.
  3683.     (file_exists_p): Removed comment saying we could use `access', since
  3684.     that is a bad idea (except for setuid programs).  Cleaned up slightly.
  3685.  
  3686.     * commands.c: Changed some comments slightly.
  3687.     (execute_file_commands): Cleaned up a bit.  Changed some comments,
  3688.     added others.  Moved freeing of storage for $^ and $? to the same
  3689.     place as for the other automatic variables.
  3690.     (execute_command_line): Made `#' trigger a shell.
  3691.     Added some comments.  Cleaned up a bit.  Put all the special chars
  3692.     that trigger shells into an array easily changeable at the top.
  3693.  
  3694.     * ar.c: Added comments explaining each function.
  3695.     (ar_scan_1): Merged into ar_member_date.
  3696.     (ar_member_date): Changed call to ar_scan_1 to the body of that
  3697.     function.
  3698.     (ar_member_date_1): Simplified to a ?: expression rather than an
  3699.     if-else statement.
  3700.     (ar_member_touch): Changed error handling around a bit.
  3701.     None of these errors are fatal now.
  3702.  
  3703.     * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
  3704.     only on full words.
  3705.     (patsubst_expand): Fixed bug which made calls whose patterns
  3706.     contained no `%' to not work correctly, by using above.
  3707.     (variable_expand): Pass extra arg to `subst_expand'.
  3708.  
  3709.     * variable.c (expand_function): Fixed bug which made `foreach' calls
  3710.     with one-word lists run off into never-never land.
  3711.  
  3712. Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3713.  
  3714.     * variable.c (expand_function): Made a very minor speed improvement
  3715.     by avoiding an unnecessary strlen call.
  3716.  
  3717. Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3718.  
  3719.     * rule.c (default_suffixes): Rearranged the list somewhat; added
  3720.     `.el' and `.elc' to speed things up (especially when building
  3721.     Emacs), for the same reason `.h' is there.
  3722.  
  3723.     * read.c (record_files): Changed `lineno' from `long' to
  3724.     `unsigned int'.
  3725.  
  3726. Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3727.  
  3728.     * variable.c (expand_function): Eliminated use of `wstok'
  3729.     because it is non-reentrant and unreliable.
  3730.     Fixed a minor bug which would cause something not to be freed.
  3731.     * make.c (wstok): Removed `wstok' because it is no longer used.
  3732.  
  3733.     * variable.c (expand_function): Made `foreach' function put
  3734.     spaces between output texts like it's supposed to.
  3735.     
  3736. Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3737.  
  3738.     * rule.c (default_suffixes, default_suffix_rules): Added rule
  3739.     to make %.dvi from %.texinfo.
  3740.  
  3741.     * dir.c (print_dir_data_base): Made it say a bit more.
  3742.  
  3743. Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3744.  
  3745.     * make.c (print_data_base): Split this function up into one
  3746.     for each thing.
  3747.     * variable.c (print_variable_data_base): One of the above.
  3748.     * rule.c (print_rule_data_base): Ditto.
  3749.     * file.c (print_file_data_base): Ditto.
  3750.     * dir.c (print_dir_data_base): Ditto.
  3751.  
  3752.     * rule.c (install_pattern_rule): Fixed a bug which caused the
  3753.     terminal and recursive flags to always be zero for rules
  3754.     entered by this function.
  3755.  
  3756.     * make.texinfo (Rules: Double-colon): Added a paragraph
  3757.     explaining the purpose of double-colon rules.
  3758.  
  3759.     * make.texinfo (Implicit: Catalogue of Rules): Updated to
  3760.     reflect new C++, TeX, Web, and Texinfo rules.  Other slight
  3761.     editorial changes.
  3762.  
  3763.     * commands.c (execute_file_commands): Fixed a bug wherein
  3764.     random memory could get written for files with no deps.
  3765.     
  3766. Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3767.  
  3768.     * read.c (readline): Fix bug wherein it would not recognize a
  3769.     backslash-newline if the buffer filled up and was enlarged
  3770.     right before reading the newline.
  3771.     
  3772. Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
  3773.  
  3774.     * read.c: Added default suffix rules for .cc (using $(C++),
  3775.     which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
  3776.     and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
  3777.     $(CTANGLE)).
  3778.     
  3779. Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3780.  
  3781.     * Made error formats use %u rather than %ld for line numbers,
  3782.     which are now unsigned int's rather than long's.
  3783.  
  3784.     * read.c (conditional_line): Fixed some bugs caused by use of
  3785.     unsigned int rather than int in one place.
  3786.  
  3787.     * read.c (conditional_line): Put the info about active
  3788.     conditionals in a struct.
  3789.     (read_makefile): Make a new struct of info about conditionals
  3790.     for included makefiles and restore the old one after the
  3791.     included makefile has been read.
  3792.  
  3793.     * read.c (read_makefile): Don't try to read a makefile with
  3794.     name "" after giving an error message because an `include'
  3795.     directive gave no filename.
  3796.  
  3797.     * read.c (read_makefile): Give an error message for
  3798.     non-whitespace text after the filename in an `include' directive.
  3799.  
  3800.     * make.c (error): Take five args, like `fatal'.  It managed to
  3801.     lose with only two.  Is there a better way to do this without vfprintf?
  3802.  
  3803.     * read.c (read_makefile): Commands consisting of only
  3804.     whitespace are not the same as no commands.  I thought I'd
  3805.     fixed this bug months ago; it seems to have come back.
  3806.  
  3807.     * make.c (collapse_continuations): All whitespace around a
  3808.     backslash-newline combination is turned into a single space.
  3809.  
  3810.     * Added COPYING file and copyright notices to all files.
  3811.  
  3812.     * make.texinfo (Running: Goals): Fix a typo.
  3813.  
  3814.     * read.c (do_define): Take an arg for the origin of the
  3815.     variable being defined.
  3816.     (read_makefile): Grok `override define'.
  3817.  
  3818.     * make.texinfo (Variables: Override Directive, Defining):
  3819.     Document the `override define' combination directive.
  3820.  
  3821.     * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
  3822.     (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
  3823.     when put in the `struct file', makes `file_mtime' try to get
  3824.     the mtime over and over again.
  3825.  
  3826.     * variable.c (pattern_matches): Fix a bug that made patterns
  3827.     not beginning with `%' never match.
  3828.     
  3829. Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3830.  
  3831.     * Took Make out of RCS.
  3832.  
  3833.     * Split the monolithic `make.c' into several smaller files.
  3834.  
  3835. Local Variables:
  3836. mode: indented-text
  3837. left-margin: 8
  3838. version-control: never
  3839. End:
  3840.