PHONY += all lst sub-make all lst _all: sub-make @: what does the @: mean?
时间: 2024-06-07 17:10:11 浏览: 12
In a Makefile, the `@` prefix is used to suppress the echoing of the command that is being executed.
In this specific case, `@:` is a no-op command that does nothing. It is used to suppress the output that would normally be printed to the console when executing the Makefile.
So `@:` is essentially telling Make to do nothing, but do it quietly without printing anything to the console.
相关问题
PHONY += $(INITRD)
这是一个Makefile文件中的一行代码,用于将变量$(INITRD)添加到PHONY变量中。PHONY变量是一个特殊的变量,其中列出的目标不是真正的文件名,而是一些伪目标,它们不对应任何实际的文件,只是一个标记。当使用make命令时,如果目标名与PHONY变量中的任何名称匹配,make将会执行指定的命令,而不管是否存在同名的文件或目录。
PHONY += initrd install zinstall uinstall
这是一个 Makefile 中的语句,用于定义伪目标(.PHONY),其中包含了四个目标(initrd、install、zinstall、uinstall)。在 Makefile 文件中,这些目标通常被用于执行一些特殊操作,如初始化 RAM 磁盘(initrd)、安装软件(install)、零配置安装(zinstall)或卸载软件(uinstall)。这些目标并不是真正的文件,因此需要使用 .PHONY 来告诉 make 工具它们是伪目标。