automake学习摘要(1)标准target (2)标准目录变量

一、Standard Makefile Targets
So far we have come across four ways to run make in the GNU Build System: make, make check, make install, and make installcheck. The words check, install, and installcheck, passed as arguments to make, are called targets. make is a shorthand for make all, all being the default target in the GNU Build System.

Here is a list of the most useful targets that the GNU Coding Standards specify.

make all
Build programs, libraries, documentation, etc. (same as make).

make install
Install what needs to be installed, copying the files from the package’s tree to system-wide directories.

make install-strip
Same as make install, then strip debugging symbols. Some users like to trade space for useful bug reports…

make uninstall
The opposite of make install: erase the installed files. (This needs to be run from the same build tree that was installed.)

make clean
Erase from the build tree the files built by make all.

make distclean
Additionally erase anything ./configure created.

make check
Run the test suite, if any.

make installcheck
Check the installed programs or libraries, if supported.

make dist
Recreate package-version.tar.gz from all the source files.

二、 Standard Directory Variables
The GNU Coding Standards also specify a hierarchy of variables to denote installation directories. Some of these are:

Directory variable Default value
prefix /usr/local
exec_prefix ${prefix}
bindir ${exec_prefix}/bin
libdir ${exec_prefix}/lib

includedir ${prefix}/include
datarootdir ${prefix}/share
datadir ${datarootdir}
mandir ${datarootdir}/man
infodir ${datarootdir}/info
docdir d a t a r o o t d i r / d o c / {datarootdir}/doc/ datarootdir/doc/{PACKAGE}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值