Unix 局部变量的较长同义词是否应该在Makefile中使用?

Unix 局部变量的较长同义词是否应该在Makefile中使用?,unix,makefile,gnu-make,bsd,Unix,Makefile,Gnu Make,Bsd,在make中,我使用的是OpenBSD的实现,但我认为这个问题也与gnumake有关,我们有以下所谓的局部变量 大致来自OpenBSD上的make1 这些局部变量具有同义词:例如,.IMPSRC for这些变量在GNU make中调用,而在POSIX标准中调用内部变量 这些发明的长名纯粹是BSD制造的发明,它们不存在于任何其他版本的制造中,如GNU制造,它们也没有在for制造中提及 这取决于你是否想使用它们,但它们是完全不可移植的。当然,如果您想实现兼容层,您可以自己定义它们 @ The

在make中,我使用的是OpenBSD的实现,但我认为这个问题也与gnumake有关,我们有以下所谓的局部变量

大致来自OpenBSD上的make1


这些局部变量具有同义词:例如,.IMPSRC for这些变量在GNU make中调用,而在POSIX标准中调用内部变量

这些发明的长名纯粹是BSD制造的发明,它们不存在于任何其他版本的制造中,如GNU制造,它们也没有在for制造中提及

这取决于你是否想使用它们,但它们是完全不可移植的。当然,如果您想实现兼容层,您可以自己定义它们

@    The name of the target
%    The name of the archive member (for library rules)
!    The name of the archive file (for library rules)
?    The list of prerequisites for this target that were deemed out of date
<    The name of the prerequisite from which this target is to be built (for inference rules)
*    The file prefix of the file, containing only the file portion, no suffix or preceding directory components