bug-make
[Top][All Lists]
Advanced

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

[bug #62206] Fix % substitution in pattern rules.


From: Dmitry Goncharov
Subject: [bug #62206] Fix % substitution in pattern rules.
Date: Sun, 20 Mar 2022 21:04:07 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62206>

                 Summary: Fix % substitution in pattern rules.
                 Project: make
            Submitted by: dgoncharov
            Submitted on: Mon 21 Mar 2022 01:04:05 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Make fails to substitute % with the stem in prerequisites of pattern rules
when second expansion is enabled.

E.g. given makefile

++++
.SECONDEXPANSION:                                                             
                                                   
all: hello.x                                                                  
                                                   
%.x: $$(wordlist 1, 99, %.1 %.2) $$(wordlist 1, 99, %.3 %.4); $(info $@ from
$^)
----

make fails to substitute '%' with 'hello' in '%.2' and '%.4'.

Specifically, make substitutes the first % in each 'word', where 'word' is
determined by get_next_word. In the example above, '$(wordlist 1, 99, %.1
%.2)' and '$(wordlist 1, 99, %.3 %.4)' are such 'words'.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62206>

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




reply via email to

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