makefile中使用环境变量的例子

上例子

首先,在linux 环境中,如此设置:

#test=1234567

#export test

#echo $test

1234567

#

然后编辑 Makefile

all:
    @echo $(test)

运行结果: 

#make

   1234567

#

结束

原文地址:https://www.cnblogs.com/gaojian/p/2711278.html