bug-make
[Top][All Lists]
Advanced

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

[bug #60811] Add long-form aliases for automatic variables


From: Gwyneth Morgan
Subject: [bug #60811] Add long-form aliases for automatic variables
Date: Tue, 22 Jun 2021 23:53:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

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

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