[Top][All Lists]

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

[bug #59399] Expanding implicit macros in gmake (enhancement request)

From: Jörg Schilling
Subject: [bug #59399] Expanding implicit macros in gmake (enhancement request)
Date: Mon, 2 Nov 2020 08:36:39 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0


                 Summary: Expanding implicit macros in gmake (enhancement
                 Project: make
            Submitted by: schily
            Submitted on: Mon 02 Nov 2020 01:36:37 PM UTC
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None



POSIX mentions that the special make macros '$*' and '$<' only need to be
defined with implicit rules.

smake for this reason and because it's internal structure does not allow it,
does not expand $* or $< and prints a warning if these macros are encountered
in explicit rules.

SunPro Make expands these implicit macros, using an internal algorithm.

gmake also expands these implicit macros but uses a completely different
algorithm to get the values that by chance may give the same result as you get
from SunPro Make, but this may differ.

How about adding a warning to gmake if these macros are encountered with
explicit rules in order to warn users that they are writing or using a
non-portable makefile?


Reply to this item at:


  Message sent via Savannah

reply via email to

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