makefile里面的@XX@ 的意义

Q: 你知道makefile里面@XX@和$XX的变量的区别么?
# Top level hierarchy
prefix = @prefix@
# Pathname of directory to install the binary
BINDEST = @prefix@/bin
# Pathname of directory to install the man page
MANDEST = @prefix@/man

A by Wooce: 你那个makefile应该不是最终的, 而是一个Makefile.in , 很多开源软件都是这样,运行./configure之后@variable@被替换, Makefile.in变成Makefile , 大概就这样。关键是你说文件名是makefile,所以一开始也把我弄糊涂了,在网上四处搜答案,如果一开始说文件名是Makefile.in,那我就马上可以回答了。
参看http://mail.la.utexas.edu/lab/software/devtool/gnu/autoconf/Makefile_Substitutions.html
.....To create a `Makefile', configure performs a simple variable substitution, replacing occurrences of `@variable@' in `Makefile.in' with the value that configure has determined for that variable. ......
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值