bug-make
[Top][All Lists]
Advanced

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

[bug #54161] Expansion of $$* is incorrect


From: anonymous
Subject: [bug #54161] Expansion of $$* is incorrect
Date: Thu, 21 Jun 2018 05:18:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

                 Summary: Expansion of $$* is incorrect
                 Project: make
            Submitted by: None
            Submitted on: Thu 21 Jun 2018 09:18:58 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

The handling of $* is unexpected as it differs between the second expansion of
the targets and the recipe.


$ cat Makefile 
.SECONDEXPANSION:
%x: $$(info $$*); : $*


For examples such as treated in the manual, this works as expected:

$ make fox
fo
: fo


However, following the suggestion about path treatment in implicit rules, the
following is unexpected:

$ make q/ux
u
: q/u


Observe the directory being stripped only in the expansion of $* in the target
listing, but not in the recipe.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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