[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #31087] .SECONDEXPANSION: of $$< expands to target in pattern prere

From: anonymous
Subject: [bug #31087] .SECONDEXPANSION: of $$< expands to target in pattern prerequisites
Date: Mon, 20 Sep 2010 17:26:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv: Gecko/2009042315 Firefox/3.0.10


                 Summary: .SECONDEXPANSION: of $$< expands to target in
pattern prerequisites
                 Project: make
            Submitted by: None
            Submitted on: Mon 20 Sep 2010 05:26:25 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: Any
           Fixed Release: None
           Triage Status: None



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
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


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]