LinuxLinuxLinux make编译浅入foresta.yang2024-04-182024-04-25123456789101112131415161718192021222324make是用来编译的,它从Makefile中读取指令,然后编译。make install是用来安装的,它也从Makefile中读取指令,安装到指定的位置。make 的作用是开始进行源代码编译,以及一些功能的提供,这些功能由他的 Makefile 设置文件提供相关的功能。比如 make install 一般表示进行安装,make uninstall 是卸载,不加参数就是默认的进行源代码编译。最常见的几个目标:make all:编译程序、库、文档等(等同于make)make install:安装已经编译好的程序。复制文件树中到文件到指定的位置make unistall:卸载已经安装的程序。make clean:删除由make命令产生的文件make distclean:删除由./configure产生的文件make check:测试刚刚编译的软件(某些程序可能不支持)make installcheck:检查安装的库和程序(某些程序可能不支持)make dist:重新打包成packname-version.tar.gz