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

2021-06-23 Thread Dmitry Goncharov
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:

  

___
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/




[bug #56701] Do not allow -j without a number

2021-06-23 Thread INVALID.NOREPLY
Follow-up Comment #6, bug #56701 (project make):

For some reason I always assumed -j without an argument was equivalent to -j
$(nproc).

It certainly can't be made illegal without breaking compatibility with
existing systems that execute make.

Making it equivalent to any number other than unlimited *could* break
compatibility if there is some script out there which relies on infinite
parallel jobs to avoid a deadlock. -l is likely to avoid this since deadlocked
jobs will not contribute to system load.

___

Reply to this item at:

  

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