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/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to