bugmake - Bugs: bug #62496, Fix "7.3 Conditionals that...

 
 

bug #62496: Fix "7.3 Conditionals that Test Flags" in the manual,

Submitter:  Dmitry Goncharov <dgoncharov>
Submitted:  Sat 21 May 2022 01:21:51 AM 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 21 May 2022 01:21:51 AM UTC, original submission:  

In paragraph "7.3 Conditionals that Test Flags" the manual contains the following recommendation


For example, here is how to arrange to use ‘ranlib -t’ to finish marking an archive file up to date:

archive.a: …
ifneq (,$(findstring t,$(MAKEFLAGS)))
...



When the user specifies long or -I<path> options, this piece of code specified above will find 't' when -t was not specified.
E.g.
$ make --no-print-directory -I/tmp
causes MAKEFLAGS to contain '--no-print-directory -I/tmp'.

We can filter out long and -I<path> options with 'filter-out -%'.
E.g.

$(findstring t,$(filter-out -%,$(MAKEFLAGS)))


Dmitry Goncharov <dgoncharov>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53239:  sv62496_test.diff added by dgoncharov (1KiB - text/x-patch)
file #53238:  sv62496_doc.diff added by dgoncharov (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Updated the item)
  • -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
    2022-08-31 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.4
        Triage StatusNone Small Effort
    2022-05-21 dgoncharov Attached File- Added sv62496_test.diff, #53239
    2022-05-21 dgoncharov Attached File- Added sv62496_doc.diff, #53238

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code