什么是“GNU make”在Windows系统上执行的“shell”功能?

投票
最喜欢的
我对Windows系统上GNU make的shell函数感到困惑。这是我的示例Makefile:

X1 := $(shell date)
X2 := $(shell cat Makefile)
X3 := $(shell dir p*)
X4 := $(shell ls p*)

example_1:
@echo $(X1)

example_2:
@echo $(X2)

example_3:
@echo $(X3)

example_4:
@echo $(X4)
make example 1 仍然可以:

2016年3月22日星期二15:45:41

根据shell函数的文档,make example 2应该列出Makefile的内容。几乎就是这种情况:

X1:= X2:= X3:= X4:= example_1:@echo example_2:@echo example_3:@echo example_4:@echo

dir p* 在控制台上给出:

24.11.2015 18:17 47.814 plot.png
22.02.2016 16:53 58.039 Plot_1.png
13.01.2016 12:46 63.043 Plot_2.png
13.01.2016 12:47 62.913 Plot_3.png
16.01.2016 00:21 199 progetto46E.csv
5 File(s), 232.008 Bytes
0 Folder(s), 60.907.466.752 Bytes free
但是make example 3找不到dir。相反,几乎make example 4给出了以下结果dir p*:

plot.png progetto46E.csv

但这是区分大小写的,只包含文件名。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值