make 命令
2015-12-04 by dongnan
环境
collectd 默认编译安装,没有使用 --prefix
参数指定安装目录,强迫症表示受不了。
目标
卸载使用 make
编译安装的 collectd
软件。
步骤
软件目录
pwd
/root/collectd-5.4.1
卸载collectd
make uninstall
Making uninstall in libltdl
make[1]: Entering directory `/root/collectd-5.4.1/libltdl'
make[1]: Leaving directory `/root/collectd-5.4.1/libltdl'
Making uninstall in src
make[1]: Entering directory `/root/collectd-5.4.1/src'
Making uninstall in libcollectdclient
make[2]: Entering directory `/root/collectd-5.4.1/src/libcollectdclient'
#...省略
命令帮助
NAME
make - GNU make utility to maintain groups of programs
SYNOPSIS
make [ -f makefile ] [ options ] ... [ targets ] ...
WARNING
This man page is an extract of the documentation of GNU make.
It is updated only occasionally, because the GNU project does not use nroff.
For complete, current documentation, refer to the Info file make.info
which is made from the Texinfo source file make.texi.
小结
make
的原理是执行一个叫 Makefile
文件里的指令,make
的基本用处是自动根据 makefile
里的指令来编译源文件。
它还可以用来做比如安装软件,卸载软件等事情,但前提是作者在 makefile
里写了。