Skip to content

Replaced "::=" with ":=" #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Replaced "::=" with ":=" #17

wants to merge 1 commit into from

Conversation

avdstaaij
Copy link
Owner

I'm not entirely sure whether this is an improvement or not. Please see the commit message for the tradeoffs.

The machine I'm talking about is the DAS-5 (https://www.cs.vu.nl/das5/), by the way.

The "::=" syntax is POSIX and ":=" is not, which is probably why we went
with "::=" before. However, GNU Make also supports ":=", and has done so
for a longer time than "::=". I have already encountered one machine
with such an old version of make that "::=" was not supported, but ":="
was. Hence this change.

If we already use any GNU Make-specific features, which we probably do,
this change only improves portability.

See also:
https://stackoverflow.com/questions/37206926/for-immediate-variable-assignment-double-colon-or-one
@avdstaaij avdstaaij requested a review from Thyrum January 21, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant