对于立即变量赋值,双冒号还是一个?

时间:2016-05-13 09:56:55

标签: makefile

在GNU make手册中,我看到了

Simply expanded variables are defined by lines using ‘:=’ or ‘::=’ (see 
Setting Variables). Both forms are equivalent in GNU make; however only the 
‘::=’ form is described by the POSIX standard (support for ‘::=’ was added to 
the POSIX standard in 2012, so older versions of make won’t accept this form
either).

想到这意味着:: =是标准的一部分,而且:=依赖于供应商。但我很少看到双重结肠。

我应该使用哪种方式来获得最大的便携性?

1 个答案:

答案 0 :(得分:1)

<input type="text" ngControl="firstName" #firstName="ngForm" required minlength="2" maxlength="35" pattern_="FIRST_NAME_PATTERN" [ngModel]="currentUserAccount?.firstName" (ngModelChange)="currentUserAccount ? currentUserAccount.firstName = $event : null" placeholder="{{'FIRST_NAME_FORM.NEW_FIRST_NAME'| translate }}" class="form-control"/> 语法已于2011年获得POSIX标准组的批准,以及::=?=。有关流程的信息以及为何选择新的分配运算符而非+=上的标准化,请参阅http://austingroupbugs.net/view.php?id=330

我不能说除了GNU make之外,哪个版本的make还支持这种语法。