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