[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60811] Add long-form aliases for automatic variables
From: |
Dmitry Goncharov |
Subject: |
[bug #60811] Add long-form aliases for automatic variables |
Date: |
Wed, 23 Jun 2021 09:33:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 |
Follow-up Comment #1, bug #60811 (project make):
$<, $@, etc are the portable automatic variables. These are standardized by
posix and supported by other unix makes, e.g. sun and ibm makes.
On the other hand, .IMPSRC, etc are not portable.
Introduction of .IMPSRC to gmake cannot improve portability, it can only
hinder it.
Have you considered adding $<, etc to bsd make to improve portability?
In regards to readability, i like this
%.o: %.c
cc -o $@ -c $<
much better than this
%.o: %.c
cc -o $(.TARGET) -c $(.IMPSRC)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60811>
_______________________________________________
Сообщение отправлено по Savannah
https://savannah.gnu.org/