bug-make
[Top][All Lists]
Advanced

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

[bug #28456] Expansion of $$< is incorrect


From: Ian Lynagh
Subject: [bug #28456] Expansion of $$< is incorrect
Date: Fri, 01 Jan 2010 01:37:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061208 Iceweasel/3.0.6 (Debian-3.0.6-1)

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

                 Summary: Expansion of $$< is incorrect
                 Project: make
            Submitted by: igloo
            Submitted on: Fri Jan  1 01:37:37 2010
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:


I was trying out the example in the "Secondary Expansion" part of the manual,
and the expansion of $$< seems to be wrong in both 3.81 and CVS. For example,
this Makefile:


.SECONDEXPANSION:

foo: bar q$$<

%:
        @echo This is the general rule for $@ with deps $^


Gives this output:


$ make foo
This is the general rule for bar with deps
This is the general rule for qfoo with deps
This is the general rule for foo with deps bar qfoo


i.e. $$< appears to have been expanded to "foo", whereas I would expect it to
be expanded to the empty string.





    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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