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



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

.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



Reply to this item at:


  Message sent via Savannah

Reply via email to