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: Fri, 25 Jun 2021 20:02:05 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #2, bug #60811 (project make):

BSD Make already has $<, $@, etc, which have corresponding long-form names
like .IMPSRC, .TARGET, etc. However, $> in BSD Make is $^ in GNU Make, which
makes it difficult to write makefiles usable in both BSD/GNU Make.

GNU Make's $^ is unportable already, so adding .ALLSRC would make it more
portable as then you could use this in both BSD/GNU Make.

If not long-form aliases, we could add $> to GNU Make as an alias to $^.
Adding new variables to BSD Make would be more difficult, because I believe
there isn't one single "BSD Make", but each BSD has its own, so I would need
to convince each BSD to add a new variable to their make rather than adding it
in one place. Each of these BSD Make variants support $>, so I think adding it
to gmake would improve the portability.

    _______________________________________________________

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]