bugmake - Bugs: bug #61122, Add a .SECONDARY example.

 
 

bug #61122: Add a .SECONDARY example.

Submitter:  Dmitry Goncharov <dgoncharov>
Submitted:  Mon 06 Sep 2021 02:35:26 PM UTC
   
 
Severity:  3 - Normal Item Group:  Documentation
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.4 Operating System:  None
Fixed Release:  4.4 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 02 Oct 2021 07:29:04 PM UTC, comment #4: 

Thanks Dmitry; I applied this after minor tweaks.

Paul D. Smith <psmith>
Group administrator
Mon 06 Sep 2021 02:55:46 PM UTC, comment #3: 

A bit more context about this patch. Recently a person showed me a makefile with an incorrect use of .SECONDARY. When i asked about this, the person explained, that there is no example of when .SECONDARY is useful.

Dmitry Goncharov <dgoncharov>
Mon 06 Sep 2021 02:47:55 PM UTC, comment #2: 

Well, i thought it was obvious that this applies when hello.tsk exists and is up to date in regards to hello.c and bye.c. But apparently, this is not obvious. i applied another patch which explicitly states when this applies.

(file #51875)

Dmitry Goncharov <dgoncharov>
Mon 06 Sep 2021 02:40:56 PM UTC, comment #1: 

How can make avoid the rebuild?  You can't link these two object files into a binary if one or both of them don't exist!

Paul D. Smith <psmith>
Group administrator
Mon 06 Sep 2021 02:35:26 PM UTC, original submission:  

Add an example to the manual of how .SECONDARY can be used to avoid unnecessary rebuilds.

Dmitry Goncharov <dgoncharov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by dgoncharov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-02 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.4
        Triage StatusNone Small Effort
    2021-09-06 dgoncharov Attached File- Added sv_61122_doc_secondary_example2.diff, #51875
    2021-09-06 dgoncharov Attached File- Added sv_61122_doc_secondary_example.diff, #51874

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code