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

                 Summary: Add long-form aliases for automatic variables
                 Project: make
            Submitted by: gwymor
            Submitted on: Wed 23 Jun 2021 03:53:55 AM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  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:

BSD Make has several long-form aliases for automatic variables, such as
`${.TARGET}` for `$@`. These are helpful for readability.

GNU Make and BSD Make both have automatic variables for all prerequisites, but
they differ (`$^` in GNU, `$>` or `${.ALLSRC}` in BSD), which makes writing
portable makefiles tricky. Adding `${.ALLSRC}` as an alias for `$^` makes
portability easier.

Introduce these automatic variable aliases for easier readability and
portability:


.IMPSRC = $<
.PREFIX = $*
.TARGET = $@
.MEMBER = $%
.ALLSRC = $^    # $> in BSD Make
.OODATE = $?


Pass --directory=src when applying patch with git.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 23 Jun 2021 03:53:55 AM UTC  Name: bmake-automatic-vars.patch  Size:
2KiB   By: gwymor

<http://savannah.gnu.org/bugs/download.php?file_id=51593>

    _______________________________________________________

Reply to this item at:

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

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


Reply via email to