A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1325 ====================================================================== Reported By: dmitry_goncharov Assigned To: ====================================================================== Project: Issue 8 drafts Issue ID: 1325 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Dmitry Goncharov Organization: User Reference: Section: (section number or name, can be interface name) Page Number: (page or range of pages) Line Number: (Line or range of lines) Final Accepted Text: ====================================================================== Date Submitted: 2020-02-09 17:17 UTC Last Modified: 2020-10-26 15:53 UTC ====================================================================== Summary: Allow make to remake an included file ======================================================================
---------------------------------------------------------------------- (0005066) geoffclare (manager) - 2020-10-26 15:53 https://austingroupbugs.net/view.php?id=1325#c5066 ---------------------------------------------------------------------- In Issue 8 draft 1 page 2892 lines 97098-97102 (make extended description), change:<blockquote>If the file does not exist in this location, it is unspecified whether additional directories are searched. If the file cannot be opened, and if the word <b>include</b> was prefixed with a <hyphen-minus> character, the file shall be ignored. Otherwise, if the file cannot be opened an error shall occur.</blockquote>to:<blockquote>If a target rule or inference rule for the pathname has been parsed before the include line is parsed <i>make</i> shall use the rule to attempt to create the file or to bring it up to date before opening the file. If the pathname is relative, the file does not exist, and it cannot be created using such a rule, it is unspecified whether additional directories are searched for an existing file of the same relative pathname. If, after applying such a rule (if any), the file cannot be opened, and if the word <b>include</b> was prefixed with a <hyphen-minus> character, the file shall be ignored. Otherwise, if the file cannot be opened an error shall occur.</blockquote> In issue 8 draft 1 page 2911 after line 97926 (make rationale), insert a new paragraph:<blockquote>This standard specifies that if a target rule or inference rule for an include line pathname has been parsed before the include line is parsed, <i>make</i> will use the rule to attempt to create the file or to bring it up to date before opening the file. Historical versions of GNU <i>make</i> delay the use of the rule until after all makefiles have been read, which means that a rule for an include file cannot be defined in an earlier include file (that itself needs to be made via a rule). Historical versions of BSD <i>make</i> do not attempt to (re-)make the include file. This standard also specifies that an include file is first (re-)made if possible, and only if not possible can other directories be searched. Historical versions of GNU <i>make</i> first search the include directories, then attempt to (re-)make the include file(s) in reverse order of the include line's appearance in the makefile. </blockquote> Issue History Date Modified Username Field Change ====================================================================== 2020-02-09 17:17 dmitry_goncharovNew Issue 2020-02-09 17:17 dmitry_goncharovName => Dmitry Goncharov 2020-02-09 17:17 dmitry_goncharovSection => (section number or name, can be interface name) 2020-02-09 18:29 shware_systems Note Added: 0004780 2020-02-10 13:27 joerg Note Added: 0004781 2020-02-10 13:28 joerg Note Edited: 0004781 2020-10-26 15:52 geoffclare Project Online Pubs => Issue 8 drafts 2020-10-26 15:53 geoffclare Note Added: 0005066 ======================================================================