bug-make
[Top][All Lists]
Advanced

[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:1.9.0.10) Gecko/2009042315 Firefox/3.0.10

URL:
  <http://savannah.gnu.org/bugs/?31087>

                 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

    _______________________________________________________

Details:

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

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

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

> make
target from ptarget






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31087>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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