makefile導(dǎo)入庫(kù)文件 如何用一個(gè)makefile編譯多個(gè)目標(biāo)?
如何用一個(gè)makefile編譯多個(gè)目標(biāo)? 安裝:xxxInstall-in是一個(gè)目標(biāo),但是Installu$(target):@Install-d$(execudir)@Install$(target
如何用一個(gè)makefile編譯多個(gè)目標(biāo)?
安裝:xxx
Install-in是一個(gè)目標(biāo),但是
Installu$(target):
@Install-d$(execudir)
@Install$(target)$(execudir)
@Install$(target).txt$(execuinstall(即在@之后安裝)是可執(zhí)行程序(*用于安裝文件的Nix工具),它與makefile中的安裝目標(biāo)無(wú)關(guān)。
您可以將makefile中的目標(biāo)install更改為另一個(gè)名稱,例如
我的安裝:$(如果$(通配符$(target)),安裝$(target))
安裝$(target):
@install-d$(exec uudir)
@install$(target)$(exec dir)
@install$(target).txt$(exec dir)
@echo
@echosinstalled$(target)binariesto$(exec dir)。。