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

                 Summary: Expanding implicit macros in gmake (enhancement
request)
                 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

    _______________________________________________________

Details:

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:

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

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


  • [bug #59399] ... Jörg Schilling
    • [bug #59... Paul D. Smith
      • [bug... Jörg Schilling
        • ... Jörg Schilling
          • ... Paul D. Smith
            • ... Paul D. Smith
              • ... Jörg Schilling
                • ... Paul D. Smith
          • ... Dmitry Goncharov via Bug reports and discussion for GNU make

Reply via email to