bugmake - Bugs: bug #31087, .SECONDEXPANSION: of $$<...


bug #31087: .SECONDEXPANSION: of $$< expands to target in pattern prerequisites

Submitted by:  None
Submitted on:  Mon 20 Sep 2010 05:26:25 PM UTC  
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.82 Operating System:  Any
Fixed Release:  None Triage Status:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 20 Sep 2010 05:40:40 PM UTC, comment #2: 

Thanks for the note; closing as dup.

Paul D. Smith <psmith>
Project Administrator
Mon 20 Sep 2010 05:36:47 PM UTC, comment #1: 

This duplicates bug #28456; sorry that I did not spot it earlier when I first looked for matching bugs.

Mon 20 Sep 2010 05:26:25 PM UTC, original submission:  

The following command line session describes and demonstrates
the issue.  It is from Ubuntu x86_64, but probably the behavior
is platform-independent.

-- John Carey

> cat /etc/issue
Ubuntu 8.04.4 LTS \n \l

> make --version
GNU Make 3.82
Built for i686-pc-linux-gnu
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
> ls -1
> cat Makefile

# "$$<" expands to "target", even though we
# are not actually invoking a .DEFAULT rule.
# It should expand to the empty string.

all : target
tar%: p$$< ; @echo '$@' from '$+'
p% : ;

> make
target from ptarget



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

Attach Files:

No files currently attached


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-20 psmith StatusNone => Duplicate
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5